`ChakraUIRenderer()` accepts `theme.heading` but never uses it
reminjp opened this issue · 0 comments
reminjp commented
Since the ChakraUIRenderer
's first arg is typed as theme?: Defaults
, it accepts heading
. However heading
is never used.
I think there are two ways to fix it:
- Change the type of
theme
fromDefaults
toComponents
. - Assign
theme.heading
totheme.h1
, ...,theme.h6
beforedeepmerge(elements, theme)
.