Skip to content

Commit

Permalink
Notice: Update dismiss button to match other Gutenberg UI (#16926)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
kjellr authored and Tammie Lister committed Aug 7, 2019
1 parent 766476a commit 612d8bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/notice/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function Notice( {
{ isDismissible && (
<IconButton
className="components-notice__dismiss"
icon="no"
icon="no-alt"
label={ __( 'Dismiss this notice' ) }
onClick={ onRemove }
tooltip={ false }
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/notice/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@
position: absolute;
top: 0;
right: 0;
color: $dark-gray-300;
color: $dark-gray-500;

&:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover,
&:not(:disabled):not([aria-disabled="true"]):not(.is-default):active,
&:not(:disabled):not([aria-disabled="true"]):focus {
color: $alert-red;
color: $dark-gray-900;
background-color: transparent;
}

Expand Down

0 comments on commit 612d8bc

Please sign in to comment.