-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Initial spin-button a11y commit #24075
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
Conversation
Keyboard state diagram, and open questions on accessibility interaction and specification highlighted.
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit df44603:
|
📊 Bundle size reportUnchanged fixtures
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 491945715ffc331e66cf0e371e6e8349d9a9499f (build) |
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 1184 | 1118 | 5000 | |
| Button | mount | 874 | 960 | 5000 | |
| FluentProvider | mount | 1395 | 1412 | 5000 | |
| FluentProviderWithTheme | mount | 557 | 556 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 522 | 605 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 627 | 633 | 10 | |
| MakeStyles | mount | 1836 | 1763 | 50000 | |
| SpinButton | mount | 2306 | 2278 | 5000 |
packages/react-components/react-spinbutton/src/stories/SpinButton/SpinButtonAccessibility.md
Outdated
Show resolved
Hide resolved
packages/react-components/react-spinbutton/src/stories/SpinButton/SpinButtonAccessibility.md
Outdated
Show resolved
Hide resolved
smhigley
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a bunch of comments, though not all of them need to be addressed in this PR -- we can add future PRs with more specifics to flesh out sections.
packages/react-components/react-spinbutton/src/stories/SpinButton/SpinButtonAccessibility.md
Show resolved
Hide resolved
packages/react-components/react-spinbutton/src/stories/SpinButton/SpinButtonAccessibility.md
Outdated
Show resolved
Hide resolved
packages/react-components/react-spinbutton/src/stories/SpinButton/SpinButtonAccessibility.md
Outdated
Show resolved
Hide resolved
packages/react-components/react-spinbutton/src/stories/SpinButton/SpinButtonAccessibility.md
Outdated
Show resolved
Hide resolved
packages/react-components/react-spinbutton/src/stories/SpinButton/SpinButtonAccessibility.md
Show resolved
Hide resolved
packages/react-components/react-spinbutton/src/stories/SpinButton/SpinButtonAccessibility.md
Show resolved
Hide resolved
packages/react-components/react-spinbutton/src/stories/SpinButton/SpinButtonAccessibility.md
Outdated
Show resolved
Hide resolved
packages/react-components/react-spinbutton/src/stories/SpinButton/SpinButtonAccessibility.md
Show resolved
Hide resolved
| #### Child content restrictions | ||
|
|
||
| The following child content is allowed: | ||
| 1. Text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we actually do not allow any children, since the primary slot is an <input> element.
We could mention that the up/down buttons can have children, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than carats, what other children are allowed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than carats, what other children are allowed?
Technically, anything that can be a child of a <button>. In practice it should probably be restricted to a 16px icon from @fluentui/react-icons as other content will likely break the visual design.
packages/react-components/react-spinbutton/src/stories/SpinButton/index.stories.tsx
Outdated
Show resolved
Hide resolved
…ton/SpinButtonAccessibility.md Co-authored-by: Sarah Higley <[email protected]>
…ton/index.stories.tsx Co-authored-by: Sarah Higley <[email protected]>
Addressing initial feedback.
Adding note about spinning animation on multiple value changes
spmonahan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
change/@fluentui-react-spinbutton-803b9a0b-82dd-471f-b57d-7717eb0d925d.json
Outdated
Show resolved
Hide resolved
packages/react-components/react-spinbutton/src/stories/SpinButton/SpinButtonAccessibility.md
Show resolved
Hide resolved
packages/react-components/react-spinbutton/src/stories/SpinButton/SpinButtonAccessibility.md
Outdated
Show resolved
Hide resolved
packages/react-components/react-spinbutton/src/stories/SpinButton/SpinButtonAccessibility.md
Outdated
Show resolved
Hide resolved
packages/react-components/react-spinbutton/src/stories/SpinButton/SpinButtonAccessibility.md
Outdated
Show resolved
Hide resolved
packages/react-components/react-spinbutton/src/stories/SpinButton/SpinButtonAccessibility.md
Outdated
Show resolved
Hide resolved
packages/react-components/react-spinbutton/src/stories/SpinButton/SpinButtonAccessibility.md
Show resolved
Hide resolved
Co-authored-by: Sean Monahan <[email protected]>
Replace placeholders for known issues and required props
spmonahan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just a few wording suggestions.
packages/react-components/react-spinbutton/src/stories/SpinButton/SpinButtonAccessibility.md
Outdated
Show resolved
Hide resolved
packages/react-components/react-spinbutton/src/stories/SpinButton/SpinButtonAccessibility.md
Outdated
Show resolved
Hide resolved
…ton/SpinButtonAccessibility.md Co-authored-by: Sean Monahan <[email protected]>
…ton/SpinButtonAccessibility.md Co-authored-by: Sean Monahan <[email protected]>
Keyboard state diagram, and open questions on accessibility interaction and specification highlighted.