-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Add Block" icon color #628
Conversation
Is this using a Dashicon? If so, can we either use a custom SVG or Material icon here? This icon feels a little off. |
Yes it is Dashicon. The If the previous icon looks better compared to this one, maybe we can wait a bit for this change? |
onClick={ onInsertClick } | ||
extraProps={ styles.addBlockButton } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't be setting the icon's color
attribute as it will be prone to error if we add css rules to this addBlockButton
class. Also it's best practice to group styling in style or className.
So:
extraProps={ { style: styles.addBlockButton } }
Thanks @Tug and @iamthomasbishop for the review! I implemented the suggested changes and tweaked a bit the look of the icon as Thomas suggested, adding a border to it. Now it looks 😎 |
That looks so much better. Thank you! <3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Updated with the changes requested for a better clarity on the intention. |
I updated the implementation of this, with a new Would you mind @Tug taking another look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well, good job here 🎉
Thank you! |
fixes: #546
This PR implements the changes made in WordPress/gutenberg#14631 to change the default color of Dashicons (in this case on
ToolbarButton
).To test:
$blue-wordpress
color.