Skip to content

Commit

Permalink
fix: tabs: pill variant color contrast fix up (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkilgore-eightfold authored Jun 20, 2023
1 parent 5353f90 commit 33646f6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/Tabs/tabs.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,20 @@
--tab-label: var(--tab-pill-label);
--tab-active-label: var(--tab-pill-active-label);
--tab-active-background: var(--tab-pill-active-background);
--tab-active-border: var(--tab-pill-active-border);
--tab-hover-label: var(--tab-pill-hover-label);
background-color: var(--tab-pill-background);
width: fit-content;
border-radius: var(--tab-pill-border-radius);
padding: var(--tab-pill-medium-padding);
width: fit-content;

.tab {
padding: $button-padding-vertical-medium $button-padding-horizontal-medium;
border: var(--tab-pill-border);
border-radius: var(--tab-pill-border-radius);
padding: $button-padding-vertical-medium $button-padding-horizontal-medium;

&.active {
border: var(--tab-pill-active-border);
.badge {
background-color: var(--primary-background1-color);
}
Expand Down
10 changes: 10 additions & 0 deletions src/styles/themes/_default-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,19 @@
--tab-pill-large-padding: 8px;
--tab-pill-medium-padding: 6px;
--tab-pill-small-padding: 4px;
--tab-pill-border-color: var(--grey-background1-color);
--tab-pill-border-style: solid;
--tab-pill-border-width: 1px;
--tab-pill-border: var(--tab-pill-border-width) var(--tab-pill-border-style)
var(--tab-pill-border-color);
--tab-pill-label: var(--text-secondary-color);
--tab-pill-active-label: var(--primary-color);
--tab-pill-active-background: var(--primary-background2-color);
--tab-pill-active-border-color: var(--primary-tertiary-color);
--tab-pill-active-border-style: solid;
--tab-pill-active-border-width: 1px;
--tab-pill-active-border: var(--tab-pill-active-border-width)
var(--tab-pill-active-border-style) var(--tab-pill-active-border-color);
--tab-pill-hover-label: var(--primary-color);
--tab-pill-background: var(--grey-background1-color);
--tab-underline: var(--border-color);
Expand Down

0 comments on commit 33646f6

Please sign in to comment.