Component
Link
Package version
3.0.0-rc.9
@microsoft/fast-element version
2.10.2
Environment
System:
OS: macOS 26.4
CPU: (8) arm64 Apple M3
Memory: 221.25 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Browsers:
Chrome: 147.0.7727.56
Edge: 147.0.3912.72
Firefox: 149.0.2
Safari: 26.4
Current Behavior
Rendering an inline link with text after the link causes the underline of the link to extend to the whitespace after the component. For example, <fluent-link href="https://example.com" inline>Learn more</fluent-link> here renders the following:
Notice how the underline extends to the whitespace between "learn more" and "here"
Expected Behavior
The link underline should not extend to the whitespace after the linked text.
Reproduction
https://stackblitz.com/edit/vitejs-vite-f779zp5d?file=src%2Fmain.ts
Steps to reproduce
- Go to the stackblitz above
- See the rendered Fluent Link and notice how the underline extends to the whitespace
Are you reporting an Accessibility issue?
None
Suggested severity
High - No workaround
Products/sites affected
No response
Are you willing to submit a PR to fix?
yes
Validations
Component
Link
Package version
3.0.0-rc.9
@microsoft/fast-element version
2.10.2
Environment
System: OS: macOS 26.4 CPU: (8) arm64 Apple M3 Memory: 221.25 MB / 16.00 GB Shell: 5.9 - /bin/zsh Browsers: Chrome: 147.0.7727.56 Edge: 147.0.3912.72 Firefox: 149.0.2 Safari: 26.4Current Behavior
Rendering an inline link with text after the link causes the underline of the link to extend to the whitespace after the component. For example,
<fluent-link href="https://example.com" inline>Learn more</fluent-link> hererenders the following:Notice how the underline extends to the whitespace between "learn more" and "here"
Expected Behavior
The link underline should not extend to the whitespace after the linked text.
Reproduction
https://stackblitz.com/edit/vitejs-vite-f779zp5d?file=src%2Fmain.ts
Steps to reproduce
Are you reporting an Accessibility issue?
None
Suggested severity
High - No workaround
Products/sites affected
No response
Are you willing to submit a PR to fix?
yes
Validations