Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/menu/menu-section.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export const GRID_COLUMN_GAP_PX = 8;
export const section = css`
padding: ${Spacing["spacing-8"]} 0;
margin: 0;
list-style: none;
`;

export const sectionWithDivider = css`
border-top: ${Border["width-010"]} ${Border["solid"]} ${Colour["border"]};
`;
Expand All @@ -25,7 +25,11 @@ export const label = css`
color: ${Colour["text-subtler"]};
`;

export const columns = css`
export const list = css`
list-style: none;
`;

export const listColumns = css`
${gridTokens.rows}: initial;

display: grid;
Expand Down
2 changes: 1 addition & 1 deletion src/menu/menu-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const MenuSection = ({
ref={ulRef}
data-testid={testId}
aria-labelledby={internalId}
className={clsx(columns && styles.columns)}
className={clsx(styles.list, columns && styles.listColumns)}
{...otherProps}
>
{children}
Expand Down
Loading