Skip to content

chore(learn): Remove legacy syntax for rgb()/rgba() #149

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 2 commits into from
Sep 6, 2023

Conversation

bsmth
Copy link
Member

@bsmth bsmth commented Sep 5, 2023

This PR changes the examples on https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Values_and_units#color to get rid of legacy syntax. Follow-up incoming of other examples needed.

  • Get rid of commas: rgb(2,121,139) -> rgb(2 121 139)
  • Use alpha channel: rgba(2, 121, 139, 0.3) -> rgb(2 121 139 / 0.3)

@bsmth bsmth requested a review from dipikabh September 6, 2023 09:16
@Rumyra Rumyra merged commit 3d66056 into mdn:main Sep 6, 2023
@bsmth bsmth deleted the learn-css-rgba-rgb branch September 7, 2023 12:14
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants