Skip to content

Commit

Permalink
fix: Add consistency in button and item button component
Browse files Browse the repository at this point in the history
  • Loading branch information
im3dabasia committed Feb 24, 2025
1 parent 563c891 commit 81e8151
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions packages/components/src/item-group/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,11 @@ export const unstyledButton = ( as: 'a' | 'button' ) => {
color: ${ COLORS.theme.accent };
}
&:focus {
box-shadow: none;
outline: none;
}
&:focus-visible {
&:focus:not( :disabled ) {
box-shadow: 0 0 0 var( --wp-admin-border-width-focus )
${ COLORS.theme.accent };
// Windows high contrast mode.
outline: 2px solid transparent;
outline-offset: 0;
// Windows High Contrast mode will show this outline, but not the box-shadow.
outline: 3px solid transparent;
}
`;
};
Expand Down

0 comments on commit 81e8151

Please sign in to comment.