Skip to content

Commit

Permalink
Revert padding on ActionList.
Browse files Browse the repository at this point in the history
  • Loading branch information
radglob committed Feb 28, 2023
1 parent ae0cbde commit 235e4cf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/ActionList/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const List = React.forwardRef<HTMLUListElement, ActionListProps>(
const styles = {
margin: 0,
paddingInlineStart: 0, // reset ul styles
paddingY: 0,
paddingY: variant === 'inset' ? 2 : 0,
}

/** if list is inside a Menu, it will get a role from the Menu */
Expand Down
16 changes: 8 additions & 8 deletions src/NavList/__snapshots__/NavList.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ exports[`NavList renders a simple list 1`] = `
.c0 {
margin: 0;
padding-inline-start: 0;
padding-top: 0;
padding-bottom: 0;
padding-top: 8px;
padding-bottom: 8px;
}
.c2 {
Expand Down Expand Up @@ -429,8 +429,8 @@ exports[`NavList renders with groups 1`] = `
.c0 {
margin: 0;
padding-inline-start: 0;
padding-top: 0;
padding-bottom: 0;
padding-top: 8px;
padding-bottom: 8px;
}
.c6 {
Expand Down Expand Up @@ -876,8 +876,8 @@ exports[`NavList.Item with NavList.SubNav does not have active styles if SubNav
.c0 {
margin: 0;
padding-inline-start: 0;
padding-top: 0;
padding-bottom: 0;
padding-top: 8px;
padding-bottom: 8px;
}
.c10 {
Expand Down Expand Up @@ -1352,8 +1352,8 @@ exports[`NavList.Item with NavList.SubNav has active styles if SubNav contains t
.c0 {
margin: 0;
padding-inline-start: 0;
padding-top: 0;
padding-bottom: 0;
padding-top: 8px;
padding-bottom: 8px;
}
.c10 {
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/__snapshots__/ActionList.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ exports[`ActionList renders consistently 1`] = `
.c0 {
margin: 0;
padding-inline-start: 0;
padding-top: 0;
padding-bottom: 0;
padding-top: 8px;
padding-bottom: 8px;
}
<ul
Expand Down

0 comments on commit 235e4cf

Please sign in to comment.