-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
fix(react-message-bar): force links to be underlined #32850
Conversation
📊 Bundle size reportUnchanged fixtures
|
600c392
to
5caa323
Compare
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
Avatar | mount | 637 | 628 | 5000 | |
Button | mount | 308 | 304 | 5000 | |
Field | mount | 1147 | 1130 | 5000 | |
FluentProvider | mount | 716 | 705 | 5000 | |
FluentProviderWithTheme | mount | 82 | 89 | 10 | |
FluentProviderWithTheme | virtual-rerender | 34 | 34 | 10 | |
FluentProviderWithTheme | virtual-rerender-with-unmount | 88 | 73 | 10 | |
MakeStyles | mount | 872 | 866 | 50000 | |
Persona | mount | 1738 | 1724 | 5000 | |
SpinButton | mount | 1393 | 1380 | 5000 | |
SwatchPicker | mount | 1661 | 1658 | 5000 |
change/@fluentui-react-message-bar-2f896b85-9363-41af-8569-e40177fbae6c.json
Outdated
Show resolved
Hide resolved
...ts/react-message-bar/library/src/components/MessageBarBody/useMessageBarBodyStyles.styles.ts
Outdated
Show resolved
Hide resolved
This might be unrelated to this PR. But I am wondering if all links should be underlined in the context of the Design System. If that's the case, maybe it would be worth exploring if we can make this change to the |
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.
These kinds of selectors are costy and also fragile - they depend on the styles of the component. Let's introduce a context for this if it only applies to MessageBar. Similar to https://github.com/microsoft/fluentui/blob/master/packages/react-components/react-avatar/library/src/contexts/AvatarContext.ts
59c927e
to
7b584c1
Compare
packages/react-components/react-message-bar/library/src/contexts/messageBarBodyContext.ts
Outdated
Show resolved
Hide resolved
7b584c1
to
090f9c2
Compare
chore(react-link): generate api.md
090f9c2
to
f164679
Compare
packages/react-components/react-link/library/src/contexts/inlineLinkContext.ts
Outdated
Show resolved
Hide resolved
...-components/react-message-bar/library/src/components/MessageBarBody/renderMessageBarBody.tsx
Outdated
Show resolved
Hide resolved
change/@fluentui-react-link-f1cc3696-e769-47fc-9fed-2ed37e12c28b.json
Outdated
Show resolved
Hide resolved
change/@fluentui-react-message-bar-331d1242-9c7c-49c1-84f0-53757e5e2f45.json
Outdated
Show resolved
Hide resolved
…neLinkContext.ts Co-authored-by: Oleksandr Fediashov <[email protected]>
…8b.json Co-authored-by: Oleksandr Fediashov <[email protected]>
…57e5e2f45.json Co-authored-by: Oleksandr Fediashov <[email protected]>
packages/react-components/react-link/library/src/components/Link/useLink.ts
Outdated
Show resolved
Hide resolved
...ts/react-message-bar/library/src/components/MessageBarBody/useMessageBarBodyContextValues.ts
Outdated
Show resolved
Hide resolved
...t-components/react-message-bar/library/src/components/MessageBarBody/MessageBarBody.types.ts
Outdated
Show resolved
Hide resolved
…nk/useLink.ts Co-authored-by: Oleksandr Fediashov <[email protected]>
…ents/MessageBarBody/useMessageBarBodyContextValues.ts Co-authored-by: Oleksandr Fediashov <[email protected]>
…ents/MessageBarBody/MessageBarBody.types.ts Co-authored-by: Oleksandr Fediashov <[email protected]>
Shift made a review for the same suggestion. Thanks Ling.
Co-authored-by: viktorgenaev <[email protected]> Co-authored-by: Oleksandr Fediashov <[email protected]>
According to design spec links inside MessageBar should be underlined
Previous Behavior
New Behavior
Related Issue(s)