feat: refactor heading to support styles as
Created by: gitstart-sourcegraph
Problem Description
To achieve the first requirements of #34741 (closed), we need to create an internal support for Hx
to be styled as Hy
, within the wildcard header components.
Description
- Support
styleAs
property in heading components, this would help to perform renderingh2
withh1
style. Using<H2 as={H1} />
couldn't do it sinceh2
css class has higher priority thanh1
Test plan
- There should be no UI changes + unit test snapshot changes
Ref
https://github.com/sourcegraph/sourcegraph/issues/34741
App preview:
Check out the client app preview documentation to learn more.