Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(slider): add slider a11y docs #341

Merged
merged 6 commits into from
Jun 2, 2022
Merged

Conversation

wsuwt
Copy link
Collaborator

@wsuwt wsuwt commented May 31, 2022

Description

Slider a11y documenation.

@wsuwt wsuwt changed the title Feat/slider docs docs(slider): add slider a11y docs May 31, 2022
@wsuwt wsuwt self-assigned this May 31, 2022
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented May 31, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 322e354
Status: ✅  Deploy successful!
Preview URL: https://bc6ca1a8.refinitiv-ui.pages.dev

View logs

@wsuwt wsuwt changed the base branch from feat/slider-a11y to feat/slider-range May 31, 2022 08:55
Base automatically changed from feat/slider-range to feat/slider-a11y June 2, 2022 03:30
@sonarcloud
Copy link

sonarcloud bot commented Jun 2, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@wsuwt wsuwt merged commit 362c289 into feat/slider-a11y Jun 2, 2022
@wsuwt wsuwt deleted the feat/slider-docs branch June 2, 2022 04:20
wsuwt added a commit that referenced this pull request Jun 6, 2022
)

* chore: update package-lock

* feat(slider): add arrow key support and add aria attributes

* test: refactor test structure and add test for arrow key interactions

* refactor: update variable names and fix typo

* feat: add focus outline style to thumb

* feat: remove input focus and focus thumb on drag

* feat: simplify `validateNumber` util function

* test: update snapshot

* fix: detect keyboard focus state from host

* fix: use tabIndex=1 instead

* feat: introduce `active` attribute for thumb

* feat: add logic to adds/removes `active` thumb focus style and add generic labels to slider and input

* test: update snapshots

* refactor: reuse `calculatePercentage` function

* fix: add min more than max case

* fix: remove invalid number checking on `calculatePercentage`

* refactor: improve variable name

* fix: add disabled back to number-field

* refactor: replace the term `percentageValue` with thumbPosition for consistency

* refactor: replace 5,10 z-index with 3,4 respectively and add comments why

* refactor: remove `validateNumber`

* fix: remove input label

* test: extract private getters to a function and remove describe layer

* refactor: rename `calculatePercentage` to `calculatePosition`

* refactor: thumb logic and use `@state`

* feat: ignore special characters onKeyDown

* refactor: remove percentage reference and initialise

* fix: add `defaultPrevented` onkeydown

* feat(slider): add `range` mode accessibility support (#332)

* feat(slider): add `range` mode accessibility support

* feat(slider): hide number-field inputs from tab sequence and screen reader

* fix: switch Home and End logic

* docs: remove deupllicated demo

* refactor: improve code readability

* refactor: keeping thumb as refs

Co-authored-by: wsuwt <[email protected]>

* docs(slider): add slider a11y docs (#341)

* feat(slider): add `range` mode accessibility support

* feat(slider): hide number-field inputs from tab sequence and screen reader

* fix: switch Home and End logic

* docs: remove deupllicated demo

* docs(slider): add slider a11y docs

Co-authored-by: wsuwt <[email protected]>

Co-authored-by: wsuwt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants