widget: color: prevent assigning "undefined" as css var (breaks in ios) (#214)
This commit is contained in:
parent
fd000711bd
commit
4332af9038
2 changed files with 3 additions and 1 deletions
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
## 0.26.3
|
||||
|
||||
- bug fixes
|
||||
- ios: broken default accent color in clone widgets
|
||||
- widgets
|
||||
- strip: `spacing` now accepts percents
|
||||
|
||||
|
|
|
|||
|
|
@ -547,7 +547,7 @@ class Widget extends EventEmitter {
|
|||
if (styles.includes('color')) {
|
||||
|
||||
// color
|
||||
this.container.style.setProperty('--color-custom', this.getProp('color') != 'auto' ? this.getProp('color') : '')
|
||||
this.container.style.setProperty('--color-custom', this.getProp('color') && this.getProp('color') != 'auto' ? this.getProp('color') : '')
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue