focus-visible
focus-visible copied to clipboard
Polyfill for `:focus-visible`
Switch from disabled control, e.g. button to enabled control, do not remove focusing style from disabled control. Steps: 1. Switch by using TAB to button element 2. Disable button 3....
It may come up that multiple scripts import or load the polyfill into the same document. In such cases we want to ensure the polyfill only runs once.
Happy to close this immediately if no one agrees, but I think that it is potentially worth moving _most_ of the stuff in the readme to it's own polyfill.md or...
Demo: https://codepen.io/233mawile/pen/bGxLMdV I simply implemented a dialog in the demo. The button in dialog should also be in focusVisible state after I clicked the 'open dialog' button in focusVisible state....
Is there any plan to handle the equivalent of `:focus-within` for the `:focus-visible` pseudo-selector in the CSS spec? Something like `:focus-visible-within`? I modified [my version of] the script to add...
Hello. Some web components with shadowDOM use focus-visible polyfill. We apply `applyFocusVisiblePolyfill` when the component is attached to the DOM `connectedCallback()`. When the component is removed, `applyFocusVisiblePolyfill` keep a reference...
Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3. Changelog Sourced from qs's changelog. 6.5.3 [Fix] parse: ignore __proto__ keys (#428) [Fix] utils.merge`: avoid a crash with a null target and a truthy...
It would make sense to have a version of the minified production build without a source map. This is not necessary for production, and we only keep included files in...
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. Release notes Sourced from decode-uri-component's releases. v0.2.2 Prevent overwriting previously decoded tokens 980e0bf https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.1...v0.2.2 v0.2.1 Switch to GitHub workflows 76abc93 Fix issue where decode...
Fixes #237. - [x] Implementation - [ ] Add a note to readme I have no idea if it is correct to skip firing the "ready" event if :focus-visible is...