Baseline accessibility rules — semantic HTML, keyboard operability, contrast, and screen-reader support — built in from the first component.
0 downloads · Used by 1 stacks
Link back to this module from your own README.
[](https://markdowners.com/m/markdowners/accessibility-baseline)No discussions about this module yet.
Start a discussionAccessibility is a correctness requirement, not a polish pass — build it in from the first component, not retrofitted before launch.
<button> for actions, <a> for navigation, <label> for form fields) before reaching for a <div> with an ARIA role and a click handler — native elements come with keyboard support, focus handling, and screen-reader semantics for free.<div>, <span>) as a click target without also making it keyboard-operable (tabindex="0", role, Enter/Space key handling) — if you find yourself doing this, use a real <button> instead.outline: none without providing an equally visible custom replacement.<img> needs descriptive alt text; every purely decorative image needs alt="" so screen readers skip it instead of announcing a meaningless filename.<label> (via for/id, or wrapping) — a placeholder is not a label; it disappears the moment the user starts typing.aria-describedby linking the error message to the field, aria-invalid on the field) — a red border alone communicates nothing to a screen reader.aria-live regions for content that updates without a page navigation (toast notifications, live search results) so screen-reader users are notified of changes they can't see.
Comments (0)
Sign in to comment. Sign in
No comments yet. Be the first to add one.