Skip to content

fix: convert rgba() to rgb() #195

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

Merged
merged 4 commits into from
Sep 9, 2024
Merged

fix: convert rgba() to rgb() #195

merged 4 commits into from
Sep 9, 2024

Conversation

OnkarRuikar
Copy link
Contributor

@OnkarRuikar OnkarRuikar commented Aug 28, 2024

Regex: rgba\((\d\d?\d?%?), ?(\d\d?\d?%?), ?(\d\d?\d?%?), ?(..?.+)\)
Replace: rgb($1 $2 $3 / $4)

An update to the new color function syntax has been done in a separate PR.

@OnkarRuikar OnkarRuikar requested a review from a team as a code owner August 28, 2024 03:46
@OnkarRuikar OnkarRuikar requested review from bsmth and removed request for a team August 28, 2024 03:46
@@ -7,16 +7,16 @@
<style>
li {
background-image: paint(boxbg);
--boxColor: hsla(55, 90%, 60%, 1);
--boxColor: hsl(55 90% 60% / 1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here about alpha values of 1, should we instead use hsl(55 90% 60%)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I've removed all the opacity 1 values.

@bsmth
Copy link
Member

bsmth commented Sep 3, 2024

couple of minor comments, overall looking fine, ty!

@OnkarRuikar OnkarRuikar requested a review from bsmth September 4, 2024 02:00
Copy link
Member

@bsmth bsmth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@bsmth bsmth merged commit 6d9753d into mdn:main Sep 9, 2024
1 check passed
@bsmth
Copy link
Member

bsmth commented Sep 9, 2024

@OnkarRuikar are there any prose references / other places that need updating following this merge?

@OnkarRuikar OnkarRuikar deleted the remove_rgba branch September 9, 2024 09:03
@OnkarRuikar
Copy link
Contributor Author

@bsmth
Copy link
Member

bsmth commented Sep 9, 2024

need to merge #196 in the same repo

✔️ done, left two comments on the content PR for complete removals

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.

Modern JS: replaces occurrences of rgba and hsla
2 participants