-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor color tokens to use tier 3 tokens #198
- Loading branch information
1 parent
1bae495
commit c0854c6
Showing
8 changed files
with
88 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license | ||
// See LICENSE in the project root for license information. | ||
|
||
// --------------------------------------------------------------------- | ||
|
||
/* stylelint-disable custom-property-empty-line-before, declaration-no-important */ | ||
|
||
@import './../node_modules/@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables'; | ||
|
||
:host { | ||
background-color: var(--ds-auro-menuoption-background-color); | ||
color: var(--ds-auro-menuoption-text-color); | ||
|
||
::slotted(hr) { | ||
border-top-color: var(--ds-auro-menu-border-color) !important; | ||
} | ||
|
||
svg { | ||
fill: var(--ds-auro-menuoption-icon-color) !important; | ||
} | ||
} | ||
|
||
:host([disabled]) { | ||
--ds-auro-menuoption-text-color: var(--ds-color-text-ui-disabled-default, #{$ds-color-text-ui-disabled-default}); | ||
} | ||
|
||
:host(:hover:not([disabled])), | ||
:host(.active) { | ||
--ds-auro-menuoption-background-color: var(--ds-color-container-ui-secondary-hover-default, #{$ds-color-container-ui-secondary-hover-default}); | ||
} | ||
|
||
:host([selected]:not([disabled])) { | ||
--ds-auro-menuoption-background-color: var(--ds-color-container-ui-primary-default-default, #{$ds-color-container-ui-primary-default-default}); | ||
--ds-auro-menuoption-text-color: var(--ds-color-text-primary-inverse, #{$ds-color-text-primary-inverse}); | ||
|
||
svg { | ||
--ds-auro-menuoption-icon-color: var(--ds-color-icon-emphasis-inverse, #{$ds-color-icon-emphasis-inverse}); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
:host { | ||
--ds-auro-menu-border-color: var(--ds-color-border-divider-default, $ds-color-border-divider-default); | ||
--ds-auro-menuoption-background-color: transparent; | ||
--ds-auro-menuoption-icon-color: transparent; | ||
--ds-auro-menuoption-text-color: var(--ds-color-text-primary-default, $ds-color-text-primary-default); | ||
} |