Docs: Suggestion; update "Color and background" note on color-contrast function
Nobody has claimed this yet.
- Dominant language
- MDX
- Stars
- 175k
- Forks
- 78.6k
- Avg merge
- 7h 19m
- Merged PRs (30d)
- 35
Description
Prerequisites
- I have searched for duplicate or closed feature requests
- I have read the contributing guidelines
Proposal
The 'Colors & background' page (https://getbootstrap.com/docs/5.3/helpers/color-background/#overview ) note at the top says:
"There’s currently no support for a CSS-native color-contrast function"
which was likely true at the time it was written, but perhaps that could be update to something like.
"There’s currently limited support for the contrast-color function"
with a link to: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/contrast-color
Motivation and context
Just a bit more context for this. Safari 26 and Firefox 146 both already support contrast-color(), hopefully Chrome/Edge will add support soon!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the “Colors & background” page at the linked documentation URL and inspect the note above the color-contrast function section. Update the note to reflect limited contrast-color() support and include the supplied MDN link; done means the rendered note is accurate and links correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 74/100