Skip to content

Commit

Permalink
fix(ActionList): add fallback to sx prop for Heading
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack committed May 10, 2023
1 parent 791e553 commit 30becd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ActionList/Heading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Box from '../Box'
import {get} from '../constants'
import {SxProp, merge} from '../sx'
import {useId} from '../hooks/useId'
import {defaultSxProp} from '../utils/defaultSxProp'

export type ActionListHeadingProps = {
variant?: 'subtle' | 'filled'
Expand All @@ -22,7 +23,7 @@ export const Heading: React.FC<React.PropsWithChildren<ActionListHeadingProps>>
title,
subtitle,
as = 'h3',
sx,
sx = defaultSxProp,
...props
}) => {
const {variant: listVariant, headingId: headingId} = React.useContext(ListContext)
Expand Down

0 comments on commit 30becd2

Please sign in to comment.