sinedied / a11y-ai

Experimental tool to automatically detect accessibility issues in web pages and provide suggestions for fixing them
MIT License
47 stars 8 forks source link

chore: add test web page #3

Open sinedied opened 1 year ago

github-actions[bot] commented 1 year ago

Accessibility Suggestions Report

Generated by a11y-ai on 2/24/2023, 2:06:38 PM


Suggested fixes for test/fixtures/example.html

Raw suggestion
--- test/fixtures/example.html
+++ test/fixtures/example.html
@@ -7,9 +7,10 @@
   </head>
   <body>
     <h1>Hello world</h1>
     <p>
-      <input type="text" placeholder="Enter your name"/>
-      <button>Click here for action</button>
+      <label for="name">Enter your name:</label>
+      <input type="text" id="name" placeholder="Enter your name" aria-label="Enter your name"/>
+      <button aria-label="Click here for action">Click here for action</button>
     </p>
   </body>
-</html>
+</html>
\ No newline at end of file

Suggested fixes for test/fixtures/test.html

Raw suggestion
--- test/fixtures/test.html
+++ test/fixtures/test.html
@@ -1,2 +1,2 @@
 <h1>Test</h1>
-<input type="text" placeholder="search" />
+<input type="text" placeholder="Search" aria-label="Search" />
\ No newline at end of file

Suggested fixes for test/fixtures/test2.html

Raw suggestion
--- test/fixtures/test2.html
+++ test/fixtures/test2.html
@@ -1,1 +1,1 @@
-<button>save</button>
\ No newline at end of file
+<button aria-label="Save">Save</button>
\ No newline at end of file