astro-accessibility

Accessibility Rules (WCAG 2.1 AA)

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "astro-accessibility" with this command: npx skills add jhb-software/payload-astro-website-template/jhb-software-payload-astro-website-template-astro-accessibility

Accessibility Rules (WCAG 2.1 AA)

This project must meet WCAG 2.1 AA guidelines.

Semantic Structure

  • Use semantic HTML: <header> , <nav> , <section> , <article> , <footer> , <ul> , <li>

  • Use ARIA roles only when native semantics are not possible (e.g. <div role="list"> )

Images

  • Informative images: use the custom <Img> component and pass the media prop, it includes the correct alt text

  • Functional images/icons (used in buttons or links): use alt or aria-label to describe the action/purpose

  • Decorative images/icons: use aria-hidden="true" and alt=""

Active State

  • Use aria-current="page" or aria-current="location" for the current page (e.g. navigation, breadcrumbs)

  • Use aria-current for styling: aria-current:font-semibold

Lists

  • Use semantic HTML: <ul> , <ol> , <li>

  • For custom components rendering lists, explicitly set ARIA roles:

  • role="list" on the container

  • role="listitem" on each item

Keyboard Navigation

  • All functionality must be operable using only the keyboard

  • Do not rely solely on hover, drag, or pointer events for core interactions

Aria Labels

  • Do NOT hardcode strings for aria-label or visually hidden (sr-only ) text

  • Always use dynamic labels from the global state: labels.global['skipToMainContent']

  • Select elements must have an accessible name (e.g. label tag or aria-label )

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

image-gen

Generate AI images from text prompts. Triggers on: "生成图片", "画一张", "AI图", "generate image", "配图", "create picture", "draw", "visualize", "generate an image".

Archived SourceRecently Updated
General

explainer

Create explainer videos with narration and AI-generated visuals. Triggers on: "解说视频", "explainer video", "explain this as a video", "tutorial video", "introduce X (video)", "解释一下XX(视频形式)".

Archived SourceRecently Updated
General

asr

Transcribe audio files to text using local speech recognition. Triggers on: "转录", "transcribe", "语音转文字", "ASR", "识别音频", "把这段音频转成文字".

Archived SourceRecently Updated
General

axure-prototype-generator

Axure 原型代码生成器 - 输出 JavaScript 格式 HTML 代码,支持内联框架直接加载可交互原型

Archived SourceRecently Updated