:focus
Since: UXP 3, PS 22.0.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 clipboard1input: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.