This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
Releases: nrkno/core-components
Releases · nrkno/core-components
core-dialog: Allow undefined OPENER
- When the user exits a
core-dialog
, we try to move focus back to original position - If this element "
OPENER
" is removed,core-dialog
will no longer throw an Error
core-datepicker: aria-pressed › data-core-datepicker-selected
@nrk/core-datepicker
now usesdata-core-datepicker-selected
as attribute for indicating selected date instead ofaria-pressed
due to screen reader inconsistencies
core-input: move focus to input element
@nrk/core-input
: Arrowing up from results list can now move focus to input element
core-dialog + core-toggle: UU fixes
@nrk/core-dialog
now lets screen reader move focus out of open dialog, and back in, without jumping toautofocus
element@nrk/core-toggle
now usesdata-haspopup
instead ofaria-haspopup
due to inconsistent behaviour in Windows based screen readers
Fix hasAttribute exception
- Fix for #104 - exception when falsly trying to run
document.hasAttribute(UUID)
core-scroll: Also hide scrollbar on Android
- Android shows scrollbar also outside
overflow: hidden
- We now add custom CSS to hide this
core-scroll: Consistent size regardless of scrollbar
- Adding correlating padding to make up for space taken/not taken by scrollbars
core-scroll: Allow small movements within clicks
- Previously, even
1px
movement counted as a "drag" making it hard to put links in@nrk/core-scoll
- Now there is a
10px
threshold before preventing clicks
core-scroll: Aslo hide scrollbars on MacOSX
- Added fallback for OSX where scrollbars are "0" pixels tall because of auto-hiding