When reviewing possible failures to WCAG
success criterion 4.1.2
I encountered a mysterious Failure of Success Criterion 4.1.2 due to the focus state of a user interface component not being programmatically determinable or no notification of change of focus state available"(https://www.w3.org/TR/2016/NOTE-WCAG20-TECHS-20161007/F79)
.
While the article identifies the failure, it does not clarify how to achieve compliance for custom components.
Hence, the question - what is the standard way of exposing focus state via the Accessibility API for custom controls in React? Does HTMLElement.focus() handle it gracefully, or are any other actions needed?