Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

core-toggle: Now with select-mode

Compare
Choose a tag to compare
@eirikbacker eirikbacker released this 18 Dec 15:01
· 720 commits to master since this release
  • @nrk/core-toggle has enhanced accessibility by using popup: String instead of popup: 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)