Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

issue fix #9581: heading strucutre fails WCAG 2.2AA- skipped heading #9631

Merged
merged 4 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/DataList.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ export default function DataList({ title, subtitle, data }) {
return (
<div>
<div className="px-4 sm:px-0">
<h3 className="text-base font-semibold leading-7 text-primary-high dark:text-primary-low">
<h2 className="text-base font-semibold leading-7 text-primary-high dark:text-primary-low">
{title}
</h3>
</h2>
<p className="mt-1 max-w-2xl text-sm leading-6 text-primary-high dark:text-primary-low">
{subtitle}
</p>
Expand Down
4 changes: 2 additions & 2 deletions components/user/UserHorizontal.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export default function UserHorizontal({ profile, input }) {
/>
<div className="flex-1 wrap">
<div className="flex items-center space-x-3">
<h3 className="text-xl font-medium text-gray-900">
<h2 className="text-xl font-medium text-gray-900">
{profile.username}
</h3>
</h2>
</div>
<Markdown
disallowedElements={["a"]}
Expand Down
4 changes: 2 additions & 2 deletions components/user/UserLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export default function UserLinks({ BASE_URL, links, username }) {
key={name}
>
<div className="-ml-2 -mt-2 flex flex-wrap items-baseline">
<h3 className="ml-2 mt-2 text-lg font-medium leading-6 dark:text-primary-low text-primary-high">
<h2 className="ml-2 mt-2 text-lg font-medium leading-6 dark:text-primary-low text-primary-high">
{name}
</h3>
</h2>
<p className="ml-2 mt-1 truncate text-sm dark:text-primary-low-high text-primary-medium">
({buckets[name].length})
</p>
Expand Down
4 changes: 2 additions & 2 deletions components/user/UserMilestone.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ export default function UserMilestone({ milestone, isGoal, manage }) {
)}
<div className="flex-1 space-y-1">
<div className="flex items-center justify-between">
<h3
<h2
className={classNames(
isGoal && "opacity-70",
"text-sm font-medium",
)}
>
<span>{milestone.title}</span>
</h3>
</h2>
<p className={`text-sm flex gap-2 items-center ${colors}`}>
{date}
{milestone.url && (
Expand Down
4 changes: 2 additions & 2 deletions components/user/UserTestimonials.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ export default function UserTestimonials({ testimonials, BASE_URL }) {
/>
</div>
<div className="flex-1 p-6 sm:hidden">
<h3 className="font-medium dark:text-primary-medium-low text-primary-high">
<h2 className="font-medium dark:text-primary-medium-low text-primary-high">
{testimonial.title}
</h3>
</h2>
<Link
href={`${BASE_URL}/${testimonial.username}`}
target="_blank"
Expand Down
Loading