Edit in GitHubLog an issue

:focus

Since UXP v3.0

Matches when the selected element is focused. An element is considered to be active when the element has keyboard focus.

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

Example:

Copied to your clipboard
1input:focus {
2 border: 1px solid red;
3}

Quirks and Exceptions

  • A typically non-interactive element must have a positive tab index in order to be matched by this rule.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.