Skip to content

Commit

Permalink
[@mantine/core] Fix incorrect focus ring styles in Button.Group and A…
Browse files Browse the repository at this point in the history
…ctionIcon.Group components (#5736)
  • Loading branch information
rtivital committed Feb 27, 2024
1 parent 9ae35d7 commit 57031df
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@
--ai-border-width: rem(1px);
display: flex;

& :where(*) {
&:focus {
position: relative;
z-index: 1;
}
}

&[data-orientation='horizontal'] {
flex-direction: row;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,19 @@
position: absolute;
left: 50%;
top: 50%;
/* opacity: 1 !important; */
/* transform: translate(-50%, -200%); */
}

.group {
--button-border-width: rem(1px);
display: flex;

& :where(*) {
&:focus {
position: relative;
z-index: 1;
}
}

&[data-orientation='horizontal'] {
flex-direction: row;

Expand Down

0 comments on commit 57031df

Please sign in to comment.