Skip to content

Commit

Permalink
linty fresh
Browse files Browse the repository at this point in the history
  • Loading branch information
langermank committed May 14, 2024
1 parent 84b941c commit 3f262cd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/content/ActionMenu.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ You can choose to have a different _anchor_ for the Menu depending on the applic

<ActionMenu.Overlay>
<ActionList showDividers>
<ActionList.Group title="Live query">
<ActionList.Group><ActionList.GroupHeading>Live query</ActionList.GroupHeading>
<ActionList.Item>
<ActionList.LeadingVisual>
<SearchIcon />
Expand All @@ -130,7 +130,7 @@ You can choose to have a different _anchor_ for the Menu depending on the applic
</ActionList.Item>
</ActionList.Group>
<ActionList.Divider />
<ActionList.Group title="Layout" variant="subtle">
<ActionList.Group variant="subtle"><ActionList.GroupHeading>Layout</ActionList.GroupHeading>
<ActionList.Item>
<ActionList.LeadingVisual>
<NoteIcon />
Expand Down
6 changes: 4 additions & 2 deletions packages/react/src/ActionList/ActionList.dev.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export const GroupWithSubtleTitleOldAPI = () => {
under features.
</p>
<ActionList selectionVariant="multiple" role="menu" showDividers aria-label="Reviewers">
<ActionList.Group title="Everyone">
<ActionList.Group>
<ActionList.GroupHeading>Everyone</ActionList.GroupHeading>
{users.slice(2).map(user => (
<ActionList.Item
role="menuitemcheckbox"
Expand Down Expand Up @@ -80,7 +81,8 @@ export const GroupWithFilledTitleOldAPI = () => {
under features.
</p>
<ActionList selectionVariant="multiple" role="menu" showDividers aria-label="Reviewers">
<ActionList.Group title="Everyone" variant="filled">
<ActionList.Group variant="filled">
<ActionList.GroupHeading>Everyone</ActionList.GroupHeading>
{users.slice(2).map(user => (
<ActionList.Item
role="menuitemcheckbox"
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/ActionList/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export const Item = React.forwardRef<HTMLLIElement, ActionListItemProps>(
cursor: 'not-allowed',
'[data-component="ActionList.Checkbox"]': {
cursor: 'not-allowed',
bg: selected ? 'fg.muted' : 'var(--color-input-disabled-bg, rgba(175, 184, 193, 0.2))',
bg: selected ? 'fg.muted' : 'var(--control-bgColor-disabled, rgba(175, 184, 193, 0.2))',
borderColor: selected ? 'fg.muted' : 'var(--color-input-disabled-bg, rgba(175, 184, 193, 0.2))',
},
},
Expand Down
3 changes: 2 additions & 1 deletion packages/react/src/NavList/NavList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ const Group: React.FC<NavListGroupProps> = ({title, children, sx: sxProp = defau
<>
{/* Hide divider if the group is the first item in the list */}
<ActionList.Divider sx={{'&:first-child': {display: 'none'}}} />
<ActionList.Group {...props} title={title} sx={sxProp}>
<ActionList.Group {...props} sx={sxProp}>
<ActionList.GroupHeading>{title}</ActionList.GroupHeading>
{children}
</ActionList.Group>
</>
Expand Down

0 comments on commit 3f262cd

Please sign in to comment.