1
0
mirror of synced 2025-12-22 19:34:15 -05:00

a11y: landing page headings adjustments (#24295)

* Adjust heading level and only heading with intro text

* Adjust heading level

* Adjust code example and guide card heading levels

* Adjust tests for new heading levels

* Adjust rendering test for new heading levels
This commit is contained in:
Robert Sese
2022-01-14 11:23:05 -06:00
committed by GitHub
parent 0c30586028
commit cc69799558
6 changed files with 22 additions and 12 deletions

View File

@@ -14,7 +14,7 @@ export const CodeExampleCard = ({ example }: Props) => {
href={`https://github.com/${example.href}`}
>
<div className="p-4">
<h4 dangerouslySetInnerHTML={{ __html: example.title }} />
<h3 className="f4" dangerouslySetInnerHTML={{ __html: example.title }} />
<p
className="mt-2 mb-4 color-fg-muted"
dangerouslySetInnerHTML={{ __html: example.description }}