Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIIN-2716 Refactor CSS away from postcss-color-function #2366

Merged
merged 4 commits into from
Dec 11, 2023
Merged

Conversation

JohnC-80
Copy link
Contributor

@JohnC-80 JohnC-80 commented Dec 6, 2023

https://issues.folio.org/browse/UIIN-2716

We're on a mission to remove an out-of-date dependency of our CSS pipeline, postcss-color-function. color() as we used it, was removed from its proposal and ultimately changed in native CSS API to convert color spaces rather than blend colors.

The functionality has been replaced via the color-mix() function as well as the new relative-color-syntax. This PR uses both.

The colors are a very near match..
image

This relates back, but is only blocked by folio-org/stripes-webpack#133 for firefox support.

Copy link

github-actions bot commented Dec 6, 2023

Jest Unit Test Statistics

    1 files  ±0  228 suites  ±0   15m 12s ⏱️ +43s
911 tests ±0  909 ✔️ ±0  2 💤 ±0  0 ±0 
916 runs  ±0  914 ✔️ ±0  2 💤 ±0  0 ±0 

Results for commit 1148c82. ± Comparison against base commit 1f107d7.

♻️ This comment has been updated with latest results.

@BogdanDenis
Copy link
Contributor

BogdanDenis commented Dec 7, 2023

Thanks @JohnC-80, looks good!
There is one failing test due to a timeout, I'll try to find a solution to fix it

PR to fix tests: #2368

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@JohnC-80 JohnC-80 merged commit 5377ebd into master Dec 11, 2023
4 checks passed
@JohnC-80 JohnC-80 deleted the UIIN-2716 branch December 11, 2023 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants