Skip to content

Commit

Permalink
Implements Synthesis styles for tabs component (#1077)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleshike authored Nov 27, 2023
1 parent 17180f0 commit 48f0511
Showing 1 changed file with 36 additions and 8 deletions.
44 changes: 36 additions & 8 deletions src/Tabs/tabs.module.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@import '../../scss/theme.scss';

.tabs.tabs {
.tabs {
--border-width: 0.125rem;

border-bottom: var(--border-width) solid $ux-gray-400;

:global(.nav-link) {
color:$ux-gray-800;
color: $ux-gray-800;
font: 400 0.875rem/1.25rem Inter, sans-serif;
text-decoration: none;
border: none;
Expand All @@ -23,14 +23,42 @@
color: $ux-blue-500;
border-bottom: var(--border-width) solid $ux-blue-500;
}
}

.flexWrapUnset.flexWrapUnset {
flex-wrap: nowrap;
.flexWrapUnset {
flex-wrap: nowrap;
}

.navItemButtonFullHeight {
:global(.nav-item .button) {
height: calc(100% + 0.125rem);
}
}
}

.navItemButtonFullHeight.navItemButtonFullHeight {
:global(.nav-item .button) {
height: calc(100% + var(--border-width));
:global(.Synthesized) .tabs {
border-bottom: 1px solid $synth-div-stroke-neutral;
align-items: flex-end;

:global(.nav-link),
:global(.nav-link.disabled) {
color: $synth-unselected-neutral;
border-bottom: 1px solid $synth-div-stroke-neutral;
position: relative;
margin-bottom: -1px;
}

:global(.nav-link.active),
:global(.nav-link:hover),
:global(.nav-link:active),
:global(.nav-link:focus) {
font-weight: $synth-font-weight-bold;
color: $synth-text-neutral;
border-bottom: 3px solid $synth-indicator-stroke-green;
}

.navItemButtonFullHeight {
:global(.nav-item .button) {
height: calc(100% + 1px);
}
}
}

0 comments on commit 48f0511

Please sign in to comment.