-
Notifications
You must be signed in to change notification settings - Fork 1
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 styles using tier 3 tokens #57
- Loading branch information
1 parent
18219d3
commit ef1b0ca
Showing
4 changed files
with
52 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright (c) 2024 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license | ||
// See LICENSE in the project root for license information. | ||
|
||
// --------------------------------------------------------------------- | ||
|
||
// Import Auro tokens | ||
@import '../node_modules/@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables'; | ||
|
||
.alert { | ||
border-color: var(--ds-auro-alert-border-color); | ||
background-color: var(--ds-auro-alert-container-color); | ||
color: var(--ds-auro-alert-text-color); | ||
} | ||
|
||
svg { | ||
color: var(--ds-auro-alert-icon-color); | ||
} | ||
|
||
:host([type='error']) { | ||
--ds-auro-alert-border-color: var(--ds-color-border-error-default, #{$ds-color-border-error-default}); | ||
--ds-auro-alert-icon-color: var(--ds-color-icon-error-default, #{$ds-color-icon-error-default}); | ||
} | ||
|
||
:host([type='warning']) { | ||
--ds-auro-alert-border-color: var(--ds-color-border-warning-inverse, #{$ds-color-border-warning-inverse}); | ||
--ds-auro-alert-icon-color: var(--ds-color-icon-warning-default, #{$ds-color-icon-warning-default}); | ||
} | ||
|
||
:host([type='information']) { | ||
--ds-auro-alert-border-color: var(--ds-color-border-info-default, #{$ds-color-border-info-default}); | ||
--ds-auro-alert-icon-color: var(--ds-color-icon-info-default, #{$ds-color-icon-info-default}); | ||
} | ||
|
||
:host([type='success']) { | ||
--ds-auro-alert-border-color: var(--ds-color-border-success-default, #{$ds-color-border-success-default}); | ||
--ds-auro-alert-icon-color: var(--ds-color-icon-success-default, #{$ds-color-icon-success-default}); | ||
} | ||
|
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-alert-border-color: var(--ds-color-border-secondary-default, $ds-color-border-secondary-default); | ||
--ds-auro-alert-container-color: var(--ds-color-container-primary-default, $ds-color-container-primary-default); | ||
--ds-auro-alert-icon-color: transparent; | ||
--ds-auro-alert-text-color: var(--ds-color-text-primary-default, $ds-color-text-primary-default); | ||
} |