Skip to content

fix(color-contrast): do not check contrast for inert elements#3894

Merged
straker merged 1 commit intodevelopfrom
inert-color-contrast
Jan 26, 2023
Merged

fix(color-contrast): do not check contrast for inert elements#3894
straker merged 1 commit intodevelopfrom
inert-color-contrast

Conversation

@straker
Copy link
Copy Markdown
Contributor

@straker straker commented Jan 25, 2023

Finishes the work on supporting inert. One question I have is if we want to not check the color contrast of labels (implicit, explicit, etc.) for inputs that are inerted. So this example:

<div id="t1"><span>Test</span></div>
<div role="textbox" aria-labelledby="bob t1 fred" inert></div>

We prevent checking this type of setup if the input is disabled (or aria-disabled). Do we need to do the same if the input has inert?

Closes: #3448

@straker straker requested a review from a team as a code owner January 25, 2023 21:46
@straker straker changed the title fix(color-contrast): do not check contrast on elements that are inerted fix(color-contrast): do not check contrast for inert elements Jan 25, 2023
@straker
Copy link
Copy Markdown
Contributor Author

straker commented Jan 26, 2023

We determined not to worry about inert inputs and their labels for now. If someone brings up an issue about it we'll reconsider.

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.

Support the HTML inert attribute

2 participants