Skip to content

Commit 9591843

Browse files
authored
ActionMenu: adjust width based on padding (#2080)
* adjust width based on padding * update snapshost
1 parent a682735 commit 9591843

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/ActionList/Item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export const Item = React.forwardRef<HTMLLIElement, ActionListItemProps>(
162162
appearance: 'none',
163163
background: 'unset',
164164
border: 'unset',
165-
width: '100%',
165+
width: 'calc(100% - 16px)',
166166
fontFamily: 'unset',
167167
textAlign: 'unset',
168168
marginY: 'unset',

src/NavList/__snapshots__/NavList.test.tsx.snap

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ exports[`NavList renders a simple list 1`] = `
5555
appearance: none;
5656
background: unset;
5757
border: unset;
58-
width: 100%;
58+
width: calc(100% - 16px);
5959
font-family: unset;
6060
text-align: unset;
6161
margin-top: unset;
@@ -139,7 +139,7 @@ exports[`NavList renders a simple list 1`] = `
139139
appearance: none;
140140
background: unset;
141141
border: unset;
142-
width: 100%;
142+
width: calc(100% - 16px);
143143
font-family: unset;
144144
text-align: unset;
145145
margin-top: unset;
@@ -456,7 +456,7 @@ exports[`NavList renders with groups 1`] = `
456456
appearance: none;
457457
background: unset;
458458
border: unset;
459-
width: 100%;
459+
width: calc(100% - 16px);
460460
font-family: unset;
461461
text-align: unset;
462462
margin-top: unset;
@@ -540,7 +540,7 @@ exports[`NavList renders with groups 1`] = `
540540
appearance: none;
541541
background: unset;
542542
border: unset;
543-
width: 100%;
543+
width: calc(100% - 16px);
544544
font-family: unset;
545545
text-align: unset;
546546
margin-top: unset;
@@ -888,7 +888,7 @@ exports[`NavList.Item with NavList.SubNav does not have active styles if SubNav
888888
appearance: none;
889889
background: unset;
890890
border: unset;
891-
width: 100%;
891+
width: calc(100% - 16px);
892892
font-family: unset;
893893
text-align: unset;
894894
margin-top: unset;
@@ -1008,7 +1008,7 @@ exports[`NavList.Item with NavList.SubNav does not have active styles if SubNav
10081008
appearance: none;
10091009
background: unset;
10101010
border: unset;
1011-
width: 100%;
1011+
width: calc(100% - 16px);
10121012
font-family: unset;
10131013
text-align: unset;
10141014
margin-top: unset;
@@ -1390,7 +1390,7 @@ exports[`NavList.Item with NavList.SubNav has active styles if SubNav contains t
13901390
appearance: none;
13911391
background: unset;
13921392
border: unset;
1393-
width: 100%;
1393+
width: calc(100% - 16px);
13941394
font-family: unset;
13951395
text-align: unset;
13961396
margin-top: unset;

0 commit comments

Comments
 (0)