Skip to content

Commit

Permalink
Merge pull request #1703 from folio-org/UIEH-1402
Browse files Browse the repository at this point in the history
UIEH-1402 Refactor css away from color() function
  • Loading branch information
JohnC-80 committed Dec 11, 2023
2 parents 0066dae + b1398d5 commit c92b8dd
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Remove eslint deps that are already listed in eslint-config-stripes. (UIEH-1389)
* Improve HTML page titles for Assigned Users and Usage Consolidation Settings pages. (UIEH-1387)
* Edit eholdings record (provider/package/title) > Cancel button does not work in same way as other apps Cancel button. (UIEH-1360)
* Refactor CSS away from `color()` function. (UIEH-1402)

## [9.0.2] (https://github.com/folio-org/ui-eholdings/tree/v9.0.2) (2023-11-09)

Expand Down
2 changes: 1 addition & 1 deletion src/components/provider-list-item/provider-list-item.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
width: 100%;
height: 100%;
background-repeat: no-repeat;
background-image: linear-gradient(to right, color(white a(0)), color(white a(30%)) 50%, color(white a(0)));
background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255,0.3) 50%, rgba(255, 255, 255,0));
background-size: 10em 100%;
background-position: -10em 0;
animation: shimmer 3s infinite;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
width: 100%;
height: 100%;
background-repeat: no-repeat;
background-image: linear-gradient(to right, color(white a(0)), color(white a(30%)) 50%, color(white a(0)));
background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255,0.3) 50%, rgba(255, 255, 255,0));
background-size: 10em 100%;
background-position: -10em 0;
animation: shimmer 3s infinite;
Expand Down
2 changes: 1 addition & 1 deletion src/components/title-list-item/title-list-item.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
width: 100%;
height: 100%;
background-repeat: no-repeat;
background-image: linear-gradient(to right, color(white a(0)), color(white a(30%)) 50%, color(white a(0)));
background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255,0.3) 50%, rgba(255, 255, 255,0));
background-size: 10em 100%;
background-position: -10em 0;
animation: shimmer 3s infinite;
Expand Down
4 changes: 2 additions & 2 deletions src/components/toaster/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

.error {
border-color: var(--error);
background-color: color(var(--error, #600) tint(75%));
background-color: oklch(from var(--error) 85% calc(c - 0.12) h);
}

.warn {
Expand All @@ -82,7 +82,7 @@

.success {
border-color: var(--success);
background-color: color(var(--success, #060) tint(75%));
background-color: oklch(from var(--success) 87% calc(c - 0.12) h);
}

.closeIcon {
Expand Down

0 comments on commit c92b8dd

Please sign in to comment.