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

V2 a11y and primitive cleanup #2354

Merged
merged 5 commits into from
Feb 8, 2018
Merged

V2 a11y and primitive cleanup #2354

merged 5 commits into from
Feb 8, 2018

Conversation

jossmac
Copy link
Collaborator

@jossmac jossmac commented Feb 7, 2018

  • options and groups are now Divs for a less "noisy" assistive experience
  • removed primitives Li, Ul, Em, and Strong
  • remove mixins and replaced references
  • rename SROnly --> A11yText, hopefully more descriptive
  • use indexes for group/option IDs
  • implement formatGroupLabel property and added an example to the home page
  • groups employ aria-labelledby [heading] rather than duplicate label declarations
  • groups now receive "options" not "children"
  • simplify and future-proof prop type definitions for builtins by leveraging typeof

- use index for group/option IDs
- implement formatGroupLabel
- groups inherit label from their heading
- groups now receive "options" not "children"
- simplify prop type definitions for builtins
@jossmac jossmac added the v2 label Feb 7, 2018
@jossmac jossmac mentioned this pull request Feb 8, 2018
@JedWatson
Copy link
Owner

👍 nice work @jossmac!

@JedWatson JedWatson merged commit bc23613 into v2 Feb 8, 2018
@JedWatson JedWatson deleted the v2-a11y-cleanup branch February 8, 2018 01:44
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.

None yet

2 participants