Skip to content

Commit

Permalink
fix: improve intro pages a11y (#5272)
Browse files Browse the repository at this point in the history
  • Loading branch information
petermakowski authored Jan 11, 2024
1 parent 681ca87 commit 8ac7786
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cypress/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export type Page = { heading: string; headingLevel?: number; url: string };
export const pages: Page[] = [
{ heading: "Login", url: "/accounts/login" },
{ heading: "SSH keys for admin", headingLevel: 2, url: "/intro/user" },
{ heading: "SSH keys for admin", url: "/intro/user" },
{ heading: "Devices", url: "/devices" },
{ heading: "Controllers", url: "/controllers" },
{ heading: "Subnets", url: "/networks" },
Expand Down
4 changes: 2 additions & 2 deletions src/app/intro/components/IntroCard/IntroCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ const IntroCard = ({
title={
<>
<span className="u-flex--between">
<h2 className="p-heading--4" data-testid="section-header-title">
<h1 className="p-heading--4" data-testid="section-header-title">
<Icon aria-label={icon} name={icon} />
&ensp;{title}
</h2>
</h1>
{titleLink ? (
<span className="p-text--default u-text--default-size">
{titleLink}
Expand Down

0 comments on commit 8ac7786

Please sign in to comment.