Skip to content

Commit

Permalink
♻️(react) use info design tokens
Browse files Browse the repository at this point in the history
Some info variant of components were using primary design token instead
of info.
  • Loading branch information
NathanVss committed Feb 13, 2024
1 parent 162809d commit f685abb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-sloths-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@openfun/cunningham-react": patch
---

use info design tokens
6 changes: 3 additions & 3 deletions packages/react/src/components/Alert/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@
}

&--info {
border-color: var(--c--theme--colors--primary-300);
border-left-color: var(--c--theme--colors--primary-600);
border-color: var(--c--theme--colors--info-300);
border-left-color: var(--c--theme--colors--info-600);

.c__alert__icon {
color: var(--c--theme--colors--primary-600);
color: var(--c--theme--colors--info-600);
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/Toast/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@

&--info {
.c__progress-bar {
--c--progress--color: var(--c--theme--colors--primary-500);
--c--progress--color: var(--c--theme--colors--info-500);
}

.c__toast__icon {
color: var(--c--theme--colors--primary-600);
color: var(--c--theme--colors--info-600);
}
}

Expand Down

0 comments on commit f685abb

Please sign in to comment.