-
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
feat: Adding span as an option for Link to render as #29937
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
📊 Bundle size report
Unchanged fixtures
|
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
Avatar | mount | 628 | 619 | 5000 | |
Button | mount | 320 | 319 | 5000 | |
Field | mount | 1163 | 1168 | 5000 | |
FluentProvider | mount | 697 | 716 | 5000 | |
FluentProviderWithTheme | mount | 75 | 77 | 10 | |
FluentProviderWithTheme | virtual-rerender | 63 | 64 | 10 | |
FluentProviderWithTheme | virtual-rerender-with-unmount | 71 | 74 | 10 | |
MakeStyles | mount | 870 | 848 | 50000 | |
Persona | mount | 1754 | 1690 | 5000 | |
SpinButton | mount | 1366 | 1386 | 5000 |
sopranopillow
approved these changes
Nov 29, 2023
packages/react-components/react-link/stories/Link/LinkAsSpan.stories.tsx
Outdated
Show resolved
Hide resolved
…eat/react-link/linkAsSpan
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 5edda99:
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 6438f49dcad090446fdec9b189a027751e8dca11 (build) |
fabricteam
reviewed
Nov 29, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Description
This PR adds
as="span"
as an option for theLink
component to render as. When rendered as aspan
, theLink
component will haverole="button"
set so the semantics for screen-reader are the same as when rendered as abutton
.This change is done so we allow an option for a
Link
with nohref
to render inline and not as a block.Related Issue(s)