Skip to content

Commit

Permalink
Merge branch 'main' into l10n_automation
Browse files Browse the repository at this point in the history
  • Loading branch information
flozia authored Dec 12, 2024
2 parents 6c57ba8 + 04f7915 commit 242423e
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions src/app/components/client/TabList.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

.tab {
cursor: pointer;
border-radius: $border-radius-sm;
display: flex;
gap: $spacing-xs;
padding: $spacing-sm;
Expand All @@ -29,9 +30,23 @@
width: 100%;
}

&[aria-selected="true"] {
&:hover,
&:focus {
outline: 2px solid $color-blue-50;
&::after {
background: $color-purple-70;
background: none;
}
}

&[aria-selected="true"] {
color: $color-purple-70;

// Only show the tab underline when the item
// is selected and not hovered or focussed.
&:not(:hover, :focus) {
&::after {
background: $color-purple-70;
}
}
}
}
Expand All @@ -44,13 +59,18 @@

.tab {
color: $color-grey-40;
padding: $spacing-xs 0;
padding: $spacing-xs $spacing-xs $spacing-xs 0;

&[aria-selected="true"] {
color: $color-purple-50;
&::after {
background: $color-purple-50;
height: 2px;

// Only show the tab underline when the item
// is selected and not hovered or focussed.
&:not(:hover, :focus) {
&::after {
background: $color-purple-50;
height: 2px;
}
}
}
}
Expand Down

0 comments on commit 242423e

Please sign in to comment.