Skip to content

Commit

Permalink
button block alignment active fix
Browse files Browse the repository at this point in the history
  • Loading branch information
karthick-murugan committed Dec 10, 2024
1 parent efe57e5 commit a062b76
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/components/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@
color: $components-color-accent;
}

// Focus.
// See https://github.com/WordPress/gutenberg/issues/13267 for more context on these selectors.
&:focus:not(:disabled) {
// Styles for the active menu item in dropdown menus.
&.components-dropdown-menu__menu-item.is-active {
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) $components-color-accent;

// Windows High Contrast mode will show this outline, but not the box-shadow.
Expand Down

0 comments on commit a062b76

Please sign in to comment.