-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Notice: Update dismiss button to match other Gutenberg UI #16926
Conversation
This matches our other close buttons throughout the interface.
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 👍
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.
Approving design as this is a great unifying PR. Thanks for catching this.
I'm seeing some js unit test error after this. Looks like you forgot to update a snapshot? |
This PR was merged while there were failing tests. :/ |
Thank you for fixing this problem @ellatrix. During the code review, we had another problem making CI tests fail and I did not notice the snapshot, I'm sorry for the potential troubles caused. |
Thanks for taking care of this Kjell. 🎉 |
* Update hover/active/focus color to dark gray. * Update close button color to be darker. This matches our other close buttons throughout the interface. * Use no-alt instead of no dashicon.
* Update hover/active/focus color to dark gray. * Update close button color to be darker. This matches our other close buttons throughout the interface. * Use no-alt instead of no dashicon.
Currently the dismiss button in the Notice component is a little non-standard:
no
dashicon, instead ofno-alt
(which is used in our modal and sidebar panel close buttons)$dark-gray-300
by default (instead of the usual$dark-gray-500
), and is red on hover, regardless of the type of notification.This PR updates those to be more consistent.
Screenshots
Before:
Notice dismiss icon alongside the panel close icon:
Hovers:
After:
Notice dismiss icon alongside the panel close icon:
Hovers:
Testing
Pasting this into your console should produce all 4 standard dismissible notices.