-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
bugThis label could be used to identify issues that are caused by a defect in the product.This label could be used to identify issues that are caused by a defect in the product.
Description
Description
Currently if we reference in the color attributes a color slug from the theme.json Otter is not using that and is reverting to the defaults
Similar with the core blocks it should use the slug name when that is used as value.
Step-by-step reproduction instructions
- Pick a color slug form theme.json, let's say
base - Pick a core block, let's say button. You can use this snippet:
window.wp.data.dispatch('core/block-editor').insertBlocks(window.wp.blocks.createBlock(
'core/paragraph',
{ textColor:"base", content:"Test"},
[]
))You can see the paragraph color is used corectly.
- Pick a Otter block, lets say a heading. You can use this snippet:
window.wp.data.dispatch('core/block-editor').insertBlocks(window.wp.blocks.createBlock(
'themeisle-blocks/advanced-heading',
{ headingColor:"base", content:"Test"},
[]
))You can see that is not using the right color and is reverting to the default.
Screenshots, screen recording, code snippet or Help Scout ticket
No response
Environment info
No response
Is the issue you are reporting a regression
No
Reactions are currently unavailable
Metadata
Metadata
Labels
bugThis label could be used to identify issues that are caused by a defect in the product.This label could be used to identify issues that are caused by a defect in the product.