twbs / twbs/bootstrap

Docs: Suggestion; update "Color and background" note on color-contrast function

Open Beginner friendly
#41,944 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

docs on-hold v5
Dominant language
MDX
Stars
175k
Forks
78.6k
Avg merge
7h 19m
Merged PRs (30d)
35

Description

Prerequisites
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.