wave icon indicating copy to clipboard operation
wave copied to clipboard

InfoBanner title always renders as `span` tag

Open nlopin opened this issue 2 years ago • 2 comments

When using the InfoBanner component, it is impossible to set the HTML-tag for the message's title. It always uses <span>, which can be incorrect.

What was expected to happen?

  • we should use a headline tag (h3 or similar) by default
  • user can set the level of the tag

nlopin avatar May 24 '23 08:05 nlopin

Hey, so I've changed it to <Headline> in the above MR

JanHamara avatar May 24 '23 12:05 JanHamara

@JanHamara we should allow picking the level because we don't know the application use case

nlopin avatar May 25 '23 13:05 nlopin