Skip to content

Commit

Permalink
use new tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsnes committed Apr 15, 2024
1 parent 769b197 commit 4422e94
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
12 changes: 6 additions & 6 deletions packages/react/src/components/Accordion/Accordion.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,21 @@
.first .accordionButton {
--fds-accordion-border-color: var(--fds-semantic-border-first-default);

background: var(--fds-semantic-surface-first-light);
background: var(--fds-semantic-surface-first-subtle);
}

.second,
.second .accordionButton {
--fds-accordion-border-color: var(--fds-semantic-border-second-default);

background: var(--fds-semantic-surface-second-light);
background: var(--fds-semantic-surface-second-subtle);
}

.third,
.third .accordionButton {
--fds-accordion-border-color: var(--fds-semantic-border-third-default);

background: var(--fds-semantic-surface-third-light);
background: var(--fds-semantic-surface-third-subtle);
}

.first .item:where(.open) .accordionButton,
Expand Down Expand Up @@ -119,15 +119,15 @@
}

.first .accordionButton:hover {
background-color: var(--fds-semantic-surface-first-light-hover);
background-color: var(--fds-semantic-surface-first-subtle-hover);
}

.second .accordionButton:hover {
background-color: var(--fds-semantic-surface-second-light-hover);
background-color: var(--fds-semantic-surface-second-subtle-hover);
}

.third .accordionButton:hover {
background-color: var(--fds-semantic-surface-third-light-hover);
background-color: var(--fds-semantic-surface-third-subtle-hover);
}
}
}
18 changes: 9 additions & 9 deletions packages/react/src/components/Card/Card.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,41 +114,41 @@
}

.first {
background-color: var(--fds-semantic-surface-first-light);
background-color: var(--fds-semantic-surface-first-subtle);
border: 1px solid var(--fds-semantic-border-neutral-subtle);
}

.first.linkCard:hover {
background-color: var(--fds-semantic-surface-first-light-hover);
background-color: var(--fds-semantic-surface-first-subtle-hover);
}

.first.linkCard:active {
background-color: var(--fds-semantic-surface-first-light-active);
background-color: var(--fds-semantic-surface-first-subtle-active);
}

.second {
background-color: var(--fds-semantic-surface-second-light);
background-color: var(--fds-semantic-surface-second-subtle);
border: 1px solid var(--fds-semantic-border-neutral-subtle);
}

.second.linkCard:hover {
background-color: var(--fds-semantic-surface-second-light-hover);
background-color: var(--fds-semantic-surface-second-subtle-hover);
}

.second.linkCard:active {
background-color: var(--fds-semantic-surface-second-light-active);
background-color: var(--fds-semantic-surface-second-subtle-active);
}

.third {
background-color: var(--fds-semantic-surface-third-light);
background-color: var(--fds-semantic-surface-third-subtle);
border: 1px solid var(--fds-semantic-border-neutral-subtle);
}

.third.linkCard:hover {
background-color: var(--fds-semantic-surface-third-light-hover);
background-color: var(--fds-semantic-surface-third-subtle-hover);
}

.third.linkCard:active {
background-color: var(--fds-semantic-surface-third-light-active);
background-color: var(--fds-semantic-surface-third-subtle-active);
}
}
2 changes: 1 addition & 1 deletion packages/react/src/components/Spinner/Spinner.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
}

.invertedBackground {
stroke: var(--fds-semantic-surface-neutral-dark);
stroke: var(--fds-semantic-surface-neutral-strong);
}

@keyframes rotate-animation {
Expand Down
6 changes: 3 additions & 3 deletions packages/react/src/components/Tag/Tag.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,17 @@
}

.first {
--fdsc-tag-background: var(--fds-semantic-surface-first-light);
--fdsc-tag-background: var(--fds-semantic-surface-first-subtle);
--fdsc-tag-text: var(--fds-semantic-text-neutral-default);
}

.second {
--fdsc-tag-background: var(--fds-semantic-surface-second-light);
--fdsc-tag-background: var(--fds-semantic-surface-second-subtle);
--fdsc-tag-text: var(--fds-semantic-text-neutral-default);
}

.third {
--fdsc-tag-background: var(--fds-semantic-surface-third-light);
--fdsc-tag-background: var(--fds-semantic-surface-third-subtle);
--fdsc-tag-text: var(--fds-semantic-text-neutral-default);
}
}
4 changes: 2 additions & 2 deletions packages/react/src/components/form/Switch/Switch.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
margin: auto;
overflow: visible;
border-radius: var(--fds-border_radius-full);
background-color: var(--fds-semantic-surface-neutral-dark);
background-color: var(--fds-semantic-surface-neutral-strong);
transition: background-color var(--fds-transition) ease;
margin-right: var(--fds-spacing-1);
}
Expand Down Expand Up @@ -206,7 +206,7 @@
}

.input:not(:checked, :disabled, [readonly]):hover + .label .track {
background-color: var(--fds-semantic-surface-neutral-dark-hover);
background-color: var(--fds-semantic-surface-neutral-strong-hover);
}

.input:not(:disabled, [readonly]):checked:hover + .label .track {
Expand Down

0 comments on commit 4422e94

Please sign in to comment.