-
Hi there. First, thanks for the great work - it's really helpful. Could you suggest a way for altering toolbar buttons color for both default and active states? I haven't found any way to achieve it. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
have you tried to add some styles or a different className to the button? I found that the styles applied to the buttons are done using styled-components. the simpler way for you to achieve this now, is by creating your own button component, but I think we can also let users change the color of the buttons using inversion of control or something similar. you can check the button component code here |
Beta Was this translation helpful? Give feedback.
-
The current toolbar is indeed not easy to customize. We can improve it in the future. Until then, just copy its code to your project. |
Beta Was this translation helpful? Give feedback.
-
I was looking to do this too; presently using JSS w/ material. I achieved it with the following:
then my JSS definition is:
|
Beta Was this translation helpful? Give feedback.
-
For those using styled components:
|
Beta Was this translation helpful? Give feedback.
-
Done in v22 https://platejs.org/ |
Beta Was this translation helpful? Give feedback.
Done in v22 https://platejs.org/