Skip to content

Commit 2817296

Browse files
micahgodboltHotell
authored andcommitted
Fix: Contextual menu label missing overflow hidden (microsoft#26591)
* fix: ContextualMenu label was missing overflow hidden * change file * snaps
1 parent 494a175 commit 2817296

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix: ContextualMenu label was missing overflow hidden",
4+
"packageName": "@fluentui/react",
5+
"email": "mgodbolt@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}

packages/react/src/components/ContextualMenu/ContextualMenu.cnstyles.ts

+1
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ export const getMenuItemStyles = memoizeFunction(
141141
flexGrow: '1',
142142
textOverflow: 'ellipsis',
143143
whiteSpace: 'nowrap',
144+
overflow: 'hidden',
144145
},
145146
secondaryText: {
146147
color: theme.palette.neutralSecondary,

packages/react/src/components/ContextualMenu/__snapshots__/ContextualMenu.test.tsx.snap

+1
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ exports[`ContextualMenu ContextualMenu snapshot ContextualMenu should be present
427427
margin-left: 4px;
428428
margin-right: 4px;
429429
margin-top: 0;
430+
overflow: hidden;
430431
text-overflow: ellipsis;
431432
vertical-align: middle;
432433
white-space: nowrap;

0 commit comments

Comments
 (0)