-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat: Add InfoLabel component #27118
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
📊 Bundle size report
Unchanged fixtures
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 71b00883c2c3080f13232cbcea92105cf4d70d54 (build) |
|
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 dbe07dd:
|
… into infolabel/implement
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 1323 | 1297 | 5000 | |
| Button | mount | 949 | 928 | 5000 | |
| Field | mount | 2054 | 2022 | 5000 | |
| FluentProvider | mount | 1662 | 1629 | 5000 | |
| FluentProviderWithTheme | mount | 638 | 634 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 580 | 605 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 631 | 629 | 10 | |
| InfoButton | mount | 569 | 556 | 5000 | |
| MakeStyles | mount | 1900 | 1923 | 50000 | |
| Persona | mount | 3064 | 3000 | 5000 | |
| SpinButton | mount | 2424 | 2450 | 5000 |
packages/react-components/react-infobutton/etc/react-infobutton.api.md
Outdated
Show resolved
Hide resolved
sopranopillow
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.
Other than the comment about the prop, lgtm!
packages/react-components/react-infobutton/stories/Infobutton/InfoButtonBestPractices.md
Outdated
Show resolved
Hide resolved
* master: (141 commits) chore: prerequisite changes before migrating v9 packages to SWC based transpilation (microsoft#26965) feat: Add InfoLabel component (microsoft#27118) fix(tools): update migrate-converged generator to add node field to package.json exports map (microsoft#27152) applying package updates fix: Embed play/pause indicator should render correctly in high contrast mode (microsoft#27213) feat(tokens): Add colorNeutralBackgroundAlpha and colorNeutralStrokeAlpha tokens (microsoft#27034) chore: Prepare release 0.66.4 (microsoft#27163) fix(react-datepicker-compat): Fix text entry issues with input (microsoft#27204) fix: Smooth out animation of indeterminate progress bar (microsoft#27201) Add cxe-red as a codeowner of react-file-type-icons (microsoft#27147) Added documentation about custom style hooks (microsoft#27087) Custom style react-text (microsoft#27078) Custom style react-image (microsoft#27066) Add JSDoc for tabster focus indicator selector (microsoft#27041) Theme designer: Move colors to local files (microsoft#27191) docs(react-card): move card out of preview (microsoft#27185) Include values in typography table (microsoft#27189) feat: accept a className in `mountNode` in `Portal` (microsoft#27008) RFC: Extend `mountNode` prop in `Portal` (microsoft#27009) applying package updates ...
* master: (141 commits) chore: prerequisite changes before migrating v9 packages to SWC based transpilation (microsoft#26965) feat: Add InfoLabel component (microsoft#27118) fix(tools): update migrate-converged generator to add node field to package.json exports map (microsoft#27152) applying package updates fix: Embed play/pause indicator should render correctly in high contrast mode (microsoft#27213) feat(tokens): Add colorNeutralBackgroundAlpha and colorNeutralStrokeAlpha tokens (microsoft#27034) chore: Prepare release 0.66.4 (microsoft#27163) fix(react-datepicker-compat): Fix text entry issues with input (microsoft#27204) fix: Smooth out animation of indeterminate progress bar (microsoft#27201) Add cxe-red as a codeowner of react-file-type-icons (microsoft#27147) Added documentation about custom style hooks (microsoft#27087) Custom style react-text (microsoft#27078) Custom style react-image (microsoft#27066) Add JSDoc for tabster focus indicator selector (microsoft#27041) Theme designer: Move colors to local files (microsoft#27191) docs(react-card): move card out of preview (microsoft#27185) Include values in typography table (microsoft#27189) feat: accept a className in `mountNode` in `Portal` (microsoft#27008) RFC: Extend `mountNode` prop in `Portal` (microsoft#27009) applying package updates ...
Previous Behavior
New Behavior
Add a new InfoLabel component, which is a Label combined with an InfoButton. It properly sets aria-labelledby on the InfoButton, and styles the button to be properly aligned with the label.
Preview documentation for InfoLabel: https://fluentuipr.z22.web.core.windows.net/pull/27118/public-docsite-v9/storybook/index.html?path=/docs/preview-components-infolabel--default