Edit in GitHubLog an issue

:checked

Since: UXP 3, PS 22.0.0

Matches when the selected element is checked.

See: https://developer.mozilla.org/en-US/docs/Web/CSS/:checked

Example:

Copied to your clipboard
1input:checked {
2 background-color: blue;
3}

Quirks and Exceptions#

  • Only works for <input type="checkbox">. Does not work for Spectrum UXP components or radio buttons. For Spectrum UXP checkboxes, use an attribute selector (e.g., [checked]).
  • Privacy
  • Terms of Use
  • Do not sell my personal information
  • AdChoices
Copyright © 2022 Adobe. All rights reserved.