-
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 hard coded size values with tokens #198
- Loading branch information
1 parent
4009ac7
commit 0bb579a
Showing
7 changed files
with
71 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// 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); | ||
} | ||
|
||
: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:not([disabled])) { | ||
--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 { | ||
fill: var(--ds-auro-menuoption-icon-color) !important; | ||
} | ||
} |
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-text-color: var(--ds-color-text-primary-default, $ds-color-text-primary-default); | ||
--ds-auro-menuoption-icon-color: var(--ds-color-icon-emphasis-inverse, $ds-color-icon-emphasis-inverse); | ||
--ds-auro-menuoption-background-color: transparent; | ||
} |