()
| 1 | import { createSignal } from 'solid-js' |
| 2 | |
| 3 | export default function App() { |
| 4 | const [showModal, setShowModal] = createSignal(false) |
| 5 | |
| 6 | return ( |
| 7 | <div style="padding: 20px; font-family: system-ui, sans-serif;"> |
| 8 | <h1>A11y Devtools Demo</h1> |
| 9 | <p> |
| 10 | This page contains intentional accessibility issues to demonstrate the |
| 11 | A11y devtools plugin. Open the devtools panel and click "Run Audit" to |
| 12 | see the issues. |
| 13 | </p> |
| 14 | |
| 15 | <section style="margin-top: 24px;"> |
| 16 | <h2>Accessibility Issues Demo</h2> |
| 17 | |
| 18 | {/* Issue: Image without alt text */} |
| 19 | <div style="margin-bottom: 16px;"> |
| 20 | <h3>1. Image without alt text</h3> |
| 21 | <img |
| 22 | src="https://via.placeholder.com/150" |
| 23 | width={150} |
| 24 | height={150} |
| 25 | style="border: 1px solid #ccc;" |
| 26 | /> |
| 27 | </div> |
| 28 | |
| 29 | {/* Issue: Button without accessible name */} |
| 30 | <div style="margin-bottom: 16px;"> |
| 31 | <h3>2. Button without accessible name</h3> |
| 32 | <button style="width: 40px; height: 40px; font-size: 20px;"> |
| 33 | <span aria-hidden="true">×</span> |
| 34 | </button> |
| 35 | </div> |
| 36 | |
| 37 | {/* Issue: Form input without label */} |
| 38 | <div style="margin-bottom: 16px;"> |
| 39 | <h3>3. Form input without label</h3> |
| 40 | <input |
| 41 | type="text" |
| 42 | placeholder="Enter your name" |
| 43 | style="padding: 8px;" |
| 44 | /> |
| 45 | </div> |
| 46 | |
| 47 | {/* Issue: Low color contrast */} |
| 48 | <div style="margin-bottom: 16px;"> |
| 49 | <h3>4. Low color contrast</h3> |
| 50 | <p style="color: #aaa; background-color: #fff;"> |
| 51 | This text has poor color contrast and may be hard to read. |
| 52 | </p> |
| 53 | </div> |
| 54 | |
| 55 | {/* Issue: Link without discernible text */} |
| 56 | <div style="margin-bottom: 16px;"> |
| 57 | <h3>5. Link without discernible text</h3> |
| 58 | <a href="https://example.com" style="display: inline-block;"> |
| 59 | <img src="https://via.placeholder.com/24" width={24} height={24} /> |
| 60 | </a> |
nothing calls this directly
no outgoing calls
no test coverage detected