Skip to content

Commit

Permalink
STCOR-768 Refactor away from color() function. (#1380)
Browse files Browse the repository at this point in the history
* refactor away from color() function in Toast.css

* log changes
  • Loading branch information
JohnC-80 authored Dec 11, 2023
1 parent 87f3436 commit 98707f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Allow console to be preserved on logout. STCOR-761.
* Export `unregisterServiceWorker` to eliminate zombie service workers. Refs FOLIO-3627.
* Fix duplicated "FOLIO" in document title in some cases. Refs STCOR-767.
* Refactor away from `color()` function. Refs STCOR-768.

## [10.0.0](https://github.com/folio-org/stripes-core/tree/v10.0.0) (2023-10-11)
[Full Changelog](https://github.com/folio-org/stripes-core/compare/v9.0.0...v10.0.0)
Expand Down
4 changes: 2 additions & 2 deletions src/components/Notification/Toast.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
box-shadow: 0 4px 19px 0 rgba(0, 0, 0, 0.39);

&.error {
background-color: color(var(--error, #900) tint(25%));
background-color: oklch(from var(--error) calc(l + 0.13) calc(c - 0.03) h);
border-color: var(--error);
color: #fff;
box-shadow: 0 4px 19px 0 rgba(153, 0, 0, 0.39);
Expand All @@ -55,7 +55,7 @@
}

&.success {
background-color: color(var(--success, #060) tint(25%));
background-color: oklch(from var(--success) calc(l + 0.13) calc(c - 0.03) h);
border-color: var(--success);
color: #fff;
box-shadow: 0 4px 19px 0 rgba(0, 112, 0, 0.39);
Expand Down

0 comments on commit 98707f3

Please sign in to comment.