Improve schema.datacite.org accessibility for footer social links, document semantics, and heading structure#163
Draft
Copilot wants to merge 2 commits into
Draft
Improve schema.datacite.org accessibility for footer social links, document semantics, and heading structure#163Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
Agent-Logs-Url: https://github.com/datacite/schema/sessions/ca1e911b-ec40-4675-b819-e2cf066aed1f Co-authored-by: ashwinisukale <1137325+ashwinisukale@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix accessibility issues for icon-only links in footer
Improve schema.datacite.org accessibility for footer social links, document semantics, and heading structure
May 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This updates
schema.datacite.orgtemplates to resolve footer “Empty link” accessibility violations and related semantic issues. Icon-only social links now expose accessible names, decorative glyphs are hidden from assistive tech, and document semantics are tightened (html[lang], logoalt, footer heading order).Footer social link accessibility
aria-labelvalues to every icon-only social link insource/includes/_footer.html.erb:<i ... aria-hidden="true">aria-hidden="true"andfocusable="false".Document language + image alternative text
lang="en"to the root<html>insource/layouts/layout.erb.alt="<%= ENV['SITE_TITLE'] %>"to the header logo image insource/includes/_header.html.erb.Footer heading semantics (skip-level mitigation)
h4toh2insource/includes/_footer.html.erbto avoid skipped heading-level warnings..footer h4to.footer h2(including margin) to preserve current visual presentation.Related issue
datacite/datacite#2450Screenshot
Original prompt
Fix accessibility issues in the schema.datacite.org site within the
datacite/schemarepository.Primary fix: footer icon-only links flagged as “Empty link”
Update
source/includes/_footer.html.erbso that all icon-only social links have accessible names and decorative icons are hidden from screen readers.Requirements
share)Apply to all footer social links
Add
aria-labelto each icon-only link using these labels:mailto:support@datacite.org→Email DataCite supporthttps://datacite.org/blog/→DataCite blogDataCite on GitHubDataCite on XDataCite on MastodonDataCite on LinkedInDataCite on YouTubeFor
<i>icons: addaria-hidden="true".For the inline SVG icon used for X/Twitter:
aria-hidden="true"focusable="false"Note: Mastodon link is a literal
<a ...>tag (notlink_to), keeprel="me", classshare, and URL unchanged; addaria-labeland hide its<i>icon.Additional fixes
<html>element haslang="en".source/layouts/layout.erb(current file uses<html>without lang).source/includes/_header.html.erb, the logo<img>currently has atitlebut noalt.alttext (use<%= ENV['SITE_TITLE'] %>).source/includes/_footer.html.erb). If WAVE/Lighthouse flags heading order, adjust to avoid skipped levels while preserving existing visual styling. Prefer minimal-change approach; do not alter layout/styling.Validation
Output
The following is the prior conversation context from the user's chat exploration (may be truncated):
User: how to run https://schema.datacite.org/ locally
Assistant: To run https://schema.datacite.org/ locally, you run the schema.datacite.org site generator and serve the built static files on your machine.
1) Prereqs
gem install bundler)2) Clone the repo
git clone https://github.com/datacite/schema.git cd schema3) Install dependencies
If you hit native-extension build errors, you may need OS build tools (e.g.,
build-essentialon Ubuntu, Xcode Command Line Tools on macOS).4) Run the local server
Most DataCite docs/sites are Jekyll-based; try:
bundle exec jekyll serveCommon variants (if the repo uses a
docs/folder or custom config):Then open:
5) If it’s not Jekyll: use the repo’s documented command
If
bundle exec jekyll servefails, the repo usually defines the right entrypoint in one of:README.mdGemfile/Rakefilepackage.jsonscripts (if Node-based)Tell me what error you get (paste the first ~30–50 lines), or share the output of:
and I’ll give you the exact command for that repo layout.
User: Work on DataCite accessibility issue:
datacite/datacite#2450
Scope:
Fix accessibility issues in the schema.datacite.org site (datacite/schema repo only).
Primary issue (from WAVE):
Footer social links are flagged as “Empty link” because they contain only icons and have no accessible name.
Root cause:
Anchor tags () contain only or icons without text or aria-label.
Target file:
source/includes/_footer.html.erb
REQUIRED FIX
Add accessible names to ALL icon-only links using aria-label.
Also ensure decorative icons are hidden from screen readers.
IMPLEMENTATION DETAILS
Update each social link like this:
BEFORE:
<% link_to 'https://github.com/datacite/datacite', class: "share" do %>
<% end %>
AFTER:
<% link_to 'https://github.com/datacite/datacite',
class: "share",
aria: { label: "DataCite on GitHub" } do %>
<% end %>
APPLY TO ALL LINKS
U...
This pull request was created from Copilot chat.