Merge remote-tracking branch 'upstream/develop' into neckbeard
This commit is contained in:
commit
56bc50dc79
|
@ -279,6 +279,9 @@ export default {
|
||||||
opacity
|
opacity
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Temporary patch for null-y value errors
|
||||||
|
if (layers.flat().some(v => v == null)) return acc
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...acc,
|
...acc,
|
||||||
...textColors.reduce((acc, textColorKey) => {
|
...textColors.reduce((acc, textColorKey) => {
|
||||||
|
@ -300,6 +303,7 @@ export default {
|
||||||
return Object.entries(ratios).reduce((acc, [k, v]) => { acc[k] = hints(v); return acc }, {})
|
return Object.entries(ratios).reduce((acc, [k, v]) => { acc[k] = hints(v); return acc }, {})
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.warn('Failure computing contrasts', e)
|
console.warn('Failure computing contrasts', e)
|
||||||
|
return {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
previewRules () {
|
previewRules () {
|
||||||
|
|
Loading…
Reference in New Issue