Skip to content

v1.1.0 - Toggle ring visibility through JS

Latest
Compare
Choose a tag to compare
@faultyserver faultyserver released this 19 Sep 22:28
· 3 commits to main since this release

This version expands FocusRingAnimationManager to also provide a global toggle for whether focus rings will be rendered at all. This is useful for when applications only want to render rings when the user is in a "keyboard mode" or for any other reason.

The scope of changes is:

  • FocusRingAnimationManager -> FocusRingManager.
  • FocusRingManager.ringsEnabled is a boolean indicating whether rings are currently allowed to render.
  • FocusRingManager.setRingsEnabled(enabled: boolean) is a function to change the ringsEnabled value. It will also force the rings to immediately re-render to pick up this value.