For Alerts, it would be great to add null as an option for headingLevel to disable the heading styles entirely.
Current behavior
you can set headingLevel to null for Alerts and it works in removing the heading styles, but Typescript complains: Type 'null' is not assignable to type 'HeadingLevel | undefined'.ts(2322)
Expected behavior
no Typescript errors, style is removed OR have a dedicated prop to remove styling
For Alerts, it would be great to add
null
as an option forheadingLevel
to disable the heading styles entirely.Current behavior
headingLevel
to null for Alerts and it works in removing the heading styles, but Typescript complains:Type 'null' is not assignable to type 'HeadingLevel | undefined'.ts(2322)
Expected behavior