Skip to content

Commit

Permalink
ActionMenu: adjust width based on padding (#2080)
Browse files Browse the repository at this point in the history
* adjust width based on padding

* update snapshost
  • Loading branch information
siddharthkp authored May 18, 2022
1 parent a682735 commit 9591843
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/ActionList/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export const Item = React.forwardRef<HTMLLIElement, ActionListItemProps>(
appearance: 'none',
background: 'unset',
border: 'unset',
width: '100%',
width: 'calc(100% - 16px)',
fontFamily: 'unset',
textAlign: 'unset',
marginY: 'unset',
Expand Down
14 changes: 7 additions & 7 deletions src/NavList/__snapshots__/NavList.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ exports[`NavList renders a simple list 1`] = `
appearance: none;
background: unset;
border: unset;
width: 100%;
width: calc(100% - 16px);
font-family: unset;
text-align: unset;
margin-top: unset;
Expand Down Expand Up @@ -139,7 +139,7 @@ exports[`NavList renders a simple list 1`] = `
appearance: none;
background: unset;
border: unset;
width: 100%;
width: calc(100% - 16px);
font-family: unset;
text-align: unset;
margin-top: unset;
Expand Down Expand Up @@ -456,7 +456,7 @@ exports[`NavList renders with groups 1`] = `
appearance: none;
background: unset;
border: unset;
width: 100%;
width: calc(100% - 16px);
font-family: unset;
text-align: unset;
margin-top: unset;
Expand Down Expand Up @@ -540,7 +540,7 @@ exports[`NavList renders with groups 1`] = `
appearance: none;
background: unset;
border: unset;
width: 100%;
width: calc(100% - 16px);
font-family: unset;
text-align: unset;
margin-top: unset;
Expand Down Expand Up @@ -888,7 +888,7 @@ exports[`NavList.Item with NavList.SubNav does not have active styles if SubNav
appearance: none;
background: unset;
border: unset;
width: 100%;
width: calc(100% - 16px);
font-family: unset;
text-align: unset;
margin-top: unset;
Expand Down Expand Up @@ -1008,7 +1008,7 @@ exports[`NavList.Item with NavList.SubNav does not have active styles if SubNav
appearance: none;
background: unset;
border: unset;
width: 100%;
width: calc(100% - 16px);
font-family: unset;
text-align: unset;
margin-top: unset;
Expand Down Expand Up @@ -1390,7 +1390,7 @@ exports[`NavList.Item with NavList.SubNav has active styles if SubNav contains t
appearance: none;
background: unset;
border: unset;
width: 100%;
width: calc(100% - 16px);
font-family: unset;
text-align: unset;
margin-top: unset;
Expand Down

0 comments on commit 9591843

Please sign in to comment.