Theming API: Fixed `value` key issue
parent
4acc2e63f7
commit
b1e30e0d3d
|
@ -86,7 +86,8 @@ export default {
|
|||
return false;
|
||||
},
|
||||
toValue(value) {
|
||||
return this.isObject(value) && value.hasOwnProperty('value') ? value.value : value;
|
||||
// Check for Figma (value-type)
|
||||
return this.isObject(value) && value.hasOwnProperty('value') && value.hasOwnProperty('type') ? value.value : value;
|
||||
},
|
||||
toUnit(value, variable = '') {
|
||||
const excludedProperties = ['opacity', 'z-index', 'line-height', 'font-weight', 'flex', 'flex-grow', 'flex-shrink', 'order'];
|
||||
|
|
Loading…
Reference in New Issue