Esri / calcite-design-system

A monorepo containing the packages for Esri's Calcite Design System
https://developers.arcgis.com/calcite-design-system/
Other
279 stars 76 forks source link

Multiple Switch components keep focus state in Safari #8617

Open tyanthony opened 7 months ago

tyanthony commented 7 months ago

Check existing issues

Actual Behavior

In Safari browser, when there are multiple switch components in a form, each maintains its focus state until it is interacted with again directly.

Ex: image

Expected Behavior

The switch should lose focus when another element, other than itself, is clicked or interacted with.

Reproduction Sample

https://codepen.io/tyleranthony/pen/PoLpZWy?editors=100

Reproduction Steps

  1. Open an environment in Safari browser
  2. Add multiple switch components
  3. Toggle multiple of them
  4. Notice that they maintain their focus state

Reproduction Version

2.1.0

Relevant Info

Browser: Safari

Regression?

No response

Priority impact

p4 - not time sensitive

Impact

No response

Calcite package

Esri team

ArcGIS Mission

driskull commented 7 months ago

Seems like the focus selector should be moved from the host to the container div maybe?

macandcheese commented 6 months ago

Seems like the focus selector should be moved from the host to the container div maybe?

Yeah - you can focus either the host, the container, or both, depending on how you focus: Screenshot 2024-02-20 at 10 26 40 AM Screenshot 2024-02-20 at 10 26 35 AM Screenshot 2024-02-20 at 10 26 31 AM

github-actions[bot] commented 3 days ago

Installed and assigned for verification.