Skip to content

Accessibility-fix-in-code - #469

Open
UdayRajSahai2 wants to merge 1 commit into
devfrom
186-accessibility---fix-directly-in-code
Open

UdayRajSahai2 wants to merge 1 commit into
devfrom
186-accessibility---fix-directly-in-code

Conversation

@UdayRajSahai2

@UdayRajSahai2 UdayRajSahai2 commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Summary
Fixes accessibility issues reported in the audit without changing how the site looks (no bigger breadcrumbs, footer icons, or zoom). Sighted users should see the same UI. Screen readers and keyboard users get clearer structure and names.

Headings and landmarks

Header and mobile menu links were rendered as h1. They are now span so each page has one real title, not five.
Home, About, Collaboratives, Publishers, Sectors, and Use Cases use the existing title as a single h1 (variant for size, as="h1" for meaning).
Datasets has no visible title, so it gets a visually hidden h1.
Nested main on listing/about pages was changed to div because the layout already has main.
Default document title/description added in the locale layout for pages that did not set one.
Forms and buttons

Search fields with empty labels now use label="Search" (the visible label stays hidden).
Sort dropdowns use label="Sort" + labelHidden so they have a name without a second “Sort” on screen.
Footer social icons get aria-labels (GitHub, LinkedIn, Twitter, Facebook). Icon size is unchanged.
Profile menu: the clickable control is the button itself, not a wrapper div (invalid ARIA). Menu content is the same; some lines only look new because of indent.
Keyboard focus

Home search, metric cards, and “Explore all …” links show a 2px focus ring only when you Tab, not on mouse click.
Third-party markup

holy-loader injects an invalid role="bar". We set aria-hidden on #holy-progress so screen readers skip the visual loading bar. Sighted users still see the green line. Tooltip components still come from opub-ui; only the global tooltip provider uses Radix so we do not get a second main.
Visual safety

Small h1 reset in globals.css so browser default heading styles do not enlarge titles (Tailwind preflight is off).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant