Add color palette edit functionality to global styles#25711
Add color palette edit functionality to global styles#25711jorgefilipecosta merged 3 commits intomasterfrom
Conversation
|
Size Change: +1.73 kB (0%) Total Size: 1.18 MB
ℹ️ View Unchanged
|
|
Just tested this one 👍 |
38eca3e to
bfc494a
Compare
There is an important related point: the state of having no user color palette (using the default/theme colors) and the state of the user intentionally setting an empty color palette are different. I added a button to allow the user to remove the user color palette and get back to defaults after removing all the colors. |
mcsf
left a comment
There was a problem hiding this comment.
Feels nice! Looking forward for the subsequent PRs for the rest of the system.
| renderToggle={ ( { isOpen, onToggle } ) => ( | ||
| <> | ||
| <DropdownOpenOnMount | ||
| shouldOpen={ isEditingColorOnMount } | ||
| isOpen={ isOpen } | ||
| onToggle={ onToggle } | ||
| /> |
Co-authored-by: Miguel Fonseca <miguelcsf@gmail.com>
This PR allows the user to configure a global color palette or even a color palette for a specific block.
Limitations
Screenshots
Tests
I added a custom color palette I saved the design and verified the colors were persisted.
I verified I could change the color code, name, and slug of existing colors.
I verified I could remove colors.