Skip to content

Commit

Permalink
chore(tabs): fix color contrast for custom tabs demo
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 601833325
  • Loading branch information
asyncLiz authored and copybara-github committed Jan 26, 2024
1 parent 04b7e9b commit 6ecda49
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions tabs/demo/stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,27 +189,18 @@ const custom: MaterialStoryInit<StoryKnobs> = {
styles,
css`
.custom {
/* colors */
--md-sys-color-primary: var(--md-sys-color-tertiary);
/* text */
--md-primary-tab-label-text-font: cursive, system-ui;
--md-primary-tab-label-text-size: 0.8em;
/* indicator */
--md-primary-tab-active-indicator-color: firebrick;
--md-primary-tab-active-indicator-height: 8px;
--md-primary-tab-active-indicator-shape: 9999px 0;
/* active/selected tab */
--active-color: darkorange;
--md-primary-tab-active-icon-color: var(--active-color);
--md-primary-tab-active-label-text-color: var(--active-color);
--md-primary-tab-active-focus-icon-color: var(--active-color);
--md-primary-tab-active-focus-label-text-color: var(--active-color);
--md-primary-tab-active-hover-icon-color: var(--active-color);
--md-primary-tab-active-hover-label-text-color: var(--active-color);
--md-primary-tab-active-pressed-icon-color: var(--active-color);
--md-primary-tab-active-pressed-label-text-color: var(--active-color);
}
.custom::part(divider) {
--md-divider-color: var(--active-color);
--md-divider-color: var(--md-sys-color-tertiary);
--md-divider-thickness: 4px;
}
`,
Expand Down

0 comments on commit 6ecda49

Please sign in to comment.