Skip to content

feat(GlDisclosureDropdown, GlCollapsibleListbox): Set focus on the first custom toggle's child

What does this MR do?

The custom toggle might have different shapes, if we set focus on the wrapper of the custom toggle the focus ring is always square. If we move the focus to the first child of the custom toggle, the focus ring will get the shape of the content.

Before After
Screenshot_2023-02-07_at_23.31.19 Screenshot_2023-02-07_at_23.30.50

Closes #2143 (closed)

Edited by Olena Horal-Koretska

Merge request reports