-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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(react-infobutton): Adding component's spec #25251
docs(react-infobutton): Adding component's spec #25251
Conversation
📊 Bundle size reportUnchanged fixtures
|
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 a36ef96:
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: ea1842baec1d31d0936665bdffedf5803049eb46 (build) |
|
||
- _Migration from v8_ | ||
- _Migration from v0_ | ||
There's no migration guide as `v0` and `v8` do not have an InfoButton component. |
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.
Hello :)
there was no similar component in v0
or in 'v8' but one version exists in the TMP repository(in MS Teams code)
Implementation accessibility details are following:
- icon is focusable
- icon has role=img
- with tooltip is icon connected via "aria-describedby" approach
- icon has label "More information"
- tooltip is displayed when icon receive focus
https://domoreexp.visualstudio.com/Teamspace/_git/teams-modular-packages/pullrequest/477885
This approach was approved by accessibility PM for MS Teams(Brett Humphrey).
If there is a button used, then generally screen reader users would expect there is some action available on the button.
I believe we should be aligned together with v9 and MS Teams component.
@sopranopillow I was thinking about this spec and here is a proposal from my side... Make
|
9520d7c
to
59cc34e
Compare
8db203f
to
bd7056e
Compare
@layershifter Love it! I think this is a great candidate for a recipe on how to create a PopupButton (name not set) the Fluent v9 way! |
|
||
### Anatomy | ||
|
||
![Anatomy](./etc/images/anatomy.png) |
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.
This image shows the popover in the "above-start" position. Will InfoButton
support positioning of the popover?
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.
Yes, that will be done through the root as it takes the popover props as well. The updated types now have the Popover props.
- Identify UI parts that appear on **hover or focus** and specify keyboard and screen reader interaction with them | ||
- List cases when **focus** needs to be **trapped** in sections of the UI (for dialogs and popups or for hierarchical navigation) | ||
- List cases when **focus** needs to be **moved programatically** (if parts of the UI are appearing/disappearing or other cases) | ||
- `role="tooltip"` is used on the PopoverSurface. |
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.
Do we then also need to use aria-describedby
or aria-labeledby
on the button itself?
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.
This isn't set yet, once we iron it out, I'll update the spec.
* master: feat(scripts): improve API violation reporting (microsoft#25356) applying package updates fix: Preventing blanket selectors from Fabric component from being applied via new preventBlanketFontInheritance prop (microsoft#25453) feat(react-infobutton): Add initial implementation (microsoft#25247) chore(react-avatar, avatar-context): migrate to new package structure (microsoft#25473) chore(react-portal, portal-compat, portal-compat-context): migrate to new package structure (microsoft#25481) docs(react-infobutton): Adding component's spec (microsoft#25251) fix(screener-build workflow): scope package to build for v9 VR tests to speed up perf (microsoft#25494) chore(vr-tests-v9): Convert Button VR tests to CSF (microsoft#25108)
* restoring work * adding requested changes * adding requested changes * adding requested changes * adding requested changes * adding requested changes
* restoring work * adding requested changes * adding requested changes * adding requested changes * adding requested changes * adding requested changes
This PR adds the spec for InfoButton. Note: this is still a WIP and will be updated after a design review of the component.
Preview
Related Issue(s)
Fixes #25061