Repository navigation
v1.3.0: LanguageSwitcherPill and keyboard navigation #50
sapatmohit
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Behaviour changes
No props were removed or renamed. These changes affect markup and keyboard handling in existing setups:
LanguageSwitcher,PhoneInputandNavBar,role="listbox"now sits on the options container instead of the popup wrapper, and the active option is exposed viaaria-activedescendant(or roving focus in NavBar). Update tests or selectors that queried the old structure. (feat(a11y): keyboard navigation for listbox popups (LanguageSwitcher, PhoneInput, NavBar) #44)language-switcher,phone-inputandnavbarnow depend on a newuse-listbox-navigationregistry item. The shadcn CLI installs it automatically. (feat(a11y): keyboard navigation for listbox popups (LanguageSwitcher, PhoneInput, NavBar) #44)New
maxHeightprop onLanguageSwitcher,PhoneInputandNavBarto cap the popup height. Defaults to15rem, the same as before. (feat(a11y): keyboard navigation for listbox popups (LanguageSwitcher, PhoneInput, NavBar) #44)useListboxNavigation: the shared keyboard hook behind the popups, available from the registry. (feat(a11y): keyboard navigation for listbox popups (LanguageSwitcher, PhoneInput, NavBar) #44)Website
What's Changed
New Contributors
Full Changelog: v1.2.0...v1.3.0
This discussion was created from the release v1.3.0.
All reactions