Skip to content

Commit

Permalink
feat(themes): update styles to support component themes #243
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-capsule42 authored and DukeFerdinand committed Aug 22, 2024
1 parent c55f5ac commit 999f1d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 209 deletions.
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,6 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](

<!-- AURO-GENERATED-CONTENT:END -->

### CSS Custom Property fallbacks

<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/cssFallbacks.md) -->
[CSS custom properties](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) are [not supported](https://auro.alaskaair.com/support/custom-properties) in older browsers. For this, fallback properties are pre-generated and included with the npm.

Any update to the Auro Design Tokens will be immediately reflected with browsers that support CSS custom properties, legacy browsers will require updated components with pre-generated fallback properties.

<!-- AURO-GENERATED-CONTENT:END -->

### Define dependency in project component

<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/componentImportDescription.md) -->
Expand Down
199 changes: 2 additions & 197 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ auro-loader {

@media (hover: hover) {
&:active:not(:disabled),
&:hover:not(:disabled) {
&:hover:not(:disabled) {
--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-default, #{$ds-color-container-ui-secondary-hover-default});
--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-default, #{$ds-color-container-ui-secondary-hover-default});
--ds-auro-button-border-color: var(--ds-color-border-ui-hover-default, #{$ds-color-border-ui-hover-default});
Expand Down Expand Up @@ -128,7 +128,7 @@ auro-loader {

@media (hover: hover) {
&:active:not(:disabled),
&:hover:not(:disabled) {
&:hover:not(:disabled) {
--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-default, #{$ds-color-container-ui-tertiary-hover-default});
--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-default, #{$ds-color-container-ui-tertiary-hover-default});
--ds-auro-button-border-color: transparent;
Expand Down Expand Up @@ -271,7 +271,7 @@ auro-loader {

@media (hover: hover) {
&:active:not(:disabled),
&:hover:not(:disabled) {
&:hover:not(:disabled) {
--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-inverse, #{$ds-color-container-ui-tertiary-hover-inverse});
--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-inverse, #{$ds-color-container-ui-tertiary-hover-inverse});
--ds-auro-button-border-color: transparent;
Expand Down

0 comments on commit 999f1d8

Please sign in to comment.