This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
core-toggle: Now with select-mode
@nrk/core-toggle
has enhanced accessibility by usingpopup: String
instead ofpopup: true
- For instance:
popup: 'Distriktsvelger'
- New event:
toggle.select
allows you to listen for clicks on interactive elements inside a toggle coreToggle(element, { value: String })
allows you to set HTML of toggle button (keeping screen reader hints in sync)