Repository navigation
[Menu] prevent menu item icons from overlapping labels in Firefox - #5433
Merged
Merged
Conversation
Denis Voituron (dvoituron)
requested a review
from Vincent Baaij (vnbaaij)
as a code owner
October 11, 2026 20:39
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The targeted CSS change matches the reported Firefox behavior without affecting other browsers.
0 open findings
What changed in this PR
Adds a Firefox-specific CSS workaround preventing menu item icons from overlapping labels.
Changes:
- Reserves 24px columns for detected start and end slots in Firefox.
- Leaves Chromium behavior unchanged.
| File | Description |
|---|---|
src/Core/Components/Menu/FluentMenuList.razor.css |
Adds the scoped Firefox layout workaround. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Denis Voituron (dvoituron)
enabled auto-merge (squash)
October 11, 2026 20:42
|
✅ All tests passed successfully Details on your Workflow / Core Tests page. |
Summary - Unit Tests Code CoverageSummary
CoverageMicrosoft.FluentUI.AspNetCore.Components - 98.2%
Microsoft.FluentUI.AspNetCore.Components.Charts - 100%
|
Vincent Baaij (vnbaaij)
approved these changes
Oct 12, 2026
This was referenced Oct 14, 2026
Closed
Closed
Merged
This was referenced Oct 19, 2026
Closed
Closed
This was referenced Oct 28, 2026
Merged
Closed
This was referenced Nov 9, 2026
This was referenced Nov 19, 2026
Merged
Closed
This was referenced Nov 27, 2026
Closed
This file contains hidden or 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
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.
[Menu] prevent menu item icons from overlapping labels in Firefox
Add a temporary Firefox-only CSS workaround for menu item icons overlapping their labels.
Firefox enables the web component's
subgridlayout but does not correctly update the internal column widths when a menu item contains content in thestartorendslot. As a result, those columns remain0pxwide and the icons overlap the label.The workaround restores the expected
24pxwidths for the affected columns when Firefox detects astartorendslot. It is guarded by a Firefox-specific@supportsrule, so the existing Chromium behavior remains unchanged.This workaround should be removed once the underlying Fluent UI Web Components issue is resolved and the corresponding package update is integrated.
Before

After
