Skip to content

Commit

Permalink
(feat) Content switcher style overrides (#1109)
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen authored Aug 5, 2024
1 parent e35735b commit 39220bb
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions packages/framework/esm-styleguide/src/_overrides.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@use '@carbon/styles/scss/spacing';
@use '@carbon/styles/scss/utilities/layout';
@use '@carbon/colors';

/* UI Shell Header */
Expand Down Expand Up @@ -55,8 +54,6 @@

/* Content Switcher */
.cds--content-switcher:not(.darkThemeSwitch) {
@include layout.use('size', $default: 'sm');

& > :first-child {
border-bottom-left-radius: 0.25rem;
border-right: unset !important;
Expand Down Expand Up @@ -84,20 +81,23 @@
border-top: 1px solid colors.$blue-30;
border-bottom: 1px solid colors.$blue-30;

&:hover {
background-color: colors.$gray-10-hover !important;
}

&::after {
background-color: transparent !important;
}

&.cds--btn--primary {
background-color: unset;
}

&:hover {
background-color: colors.$gray-10-hover;
}
&:focus {
box-shadow: none;
}

&::before {
background-color: colors.$blue-30;
height: 100%;
z-index: 0;
}
Expand Down Expand Up @@ -442,9 +442,8 @@ html[dir='rtl'] {
}
}

/* RTL Content Switcher */
.cds--content-switcher {
@include layout.use('size', $default: 'sm');

& > :first-child {
border-bottom-right-radius: 0.25rem !important;
border-left: unset !important;
Expand All @@ -459,8 +458,6 @@ html[dir='rtl'] {

& > :last-child {
border-bottom-left-radius: 0.25rem !important;
border-left: unset;
border-right: unset;
border-top-left-radius: 0.25rem !important;

[aria-selected='false'] {
Expand Down Expand Up @@ -489,11 +486,14 @@ html[dir='rtl'] {
}

&::before {
background-color: colors.$blue-30;
height: 100%;
z-index: 0;
}

&:focus {
box-shadow: none;
}

&.cds--content-switcher--selected {
border: 1px solid colors.$blue-60 !important;
background-color: colors.$blue-10 !important;
Expand Down

0 comments on commit 39220bb

Please sign in to comment.