mirror of
https://github.com/spartan-ng/spartan.git
synced 2026-09-22 16:41:38 +08:00
23f20bf4dd
Moving popover-backed controls off CDK Dialog dropped the dialog's autoFocus: 'first-tabbable', so popovers no longer moved focus to their content on open (form fields were left unfocused, comboboxes could not be typed into immediately). Add an opt-in autoFocus option to BrnOverlay that focuses the first tabbable element once the content renders, and enable it in the popover defaults. The select keeps focus on its trigger because its listbox has no tabbable element, preserving the aria-activedescendant keyboard model. Re-expose the autoFocus input on the helm popover wrapper and its CLI template, and refresh the docs API snapshot.
@spartan-ng/brain/popover
Secondary entry point of @spartan-ng/brain. It can be used by importing from @spartan-ng/brain/popover.