瀏覽代碼

pa11y integration

Heydon Pickering 7 年之前
父節點
當前提交
64d9b0fa97
共有 5 個文件被更改,包括 52 次插入34 次删除
  1. 22 16
      docs/patterns/coding/tested/index.html
  2. 22 16
      docs/print-version/index.html
  3. 0 0
      docs/service-worker.js
  4. 5 0
      lib/.pa11yci
  5. 3 2
      package.json

+ 22 - 16
docs/patterns/coding/tested/index.html

@@ -419,43 +419,49 @@
     
       <td>
         
+        
+        
+        
+        <img src="https://thepaciellogroup.github.io/cupper/images/browser-firefox.svg" alt="">
+        <span><strong>Firefox </strong></span>
+        
           
           
-          
-          
-          <img src="https://thepaciellogroup.github.io/cupper/images/browser-firefox.svg" alt="">
-          <span><strong>Firefox</strong></span>
           <span class="additional">with <strong>JAWS</strong></span>
         
       </td>
     
       <td>
         
-          
-          
-          <img src="https://thepaciellogroup.github.io/cupper/images/browser-chrome.svg" alt="">
-          <span><strong>Chrome</strong></span>
+        
+        
+        
+        <img src="https://thepaciellogroup.github.io/cupper/images/browser-chrome.svg" alt="">
+        <span><strong>Chrome </strong></span>
         
       </td>
     
       <td>
         
+        
+        
+        
+        <img src="https://thepaciellogroup.github.io/cupper/images/browser-safari-ios.svg" alt="">
+        <span><strong>Safari iOS </strong></span>
+        
           
           
-          
-          
-          <img src="https://thepaciellogroup.github.io/cupper/images/browser-safari-ios.svg" alt="">
-          <span><strong>Safari iOS</strong></span>
           <span class="additional">with <strong>Voiceover</strong></span>
         
       </td>
     
       <td>
         
-          
-          
-          <img src="https://thepaciellogroup.github.io/cupper/images/browser-edge.svg" alt="">
-          <span><strong>Edge</strong></span>
+        
+        
+        
+        <img src="https://thepaciellogroup.github.io/cupper/images/browser-edge.svg" alt="">
+        <span><strong>Edge </strong></span>
         
       </td>
     

+ 22 - 16
docs/print-version/index.html

@@ -2298,43 +2298,49 @@ npm run start
     
       <td>
         
+        
+        
+        
+        <img src="https://thepaciellogroup.github.io/cupper/images/browser-firefox.svg" alt="">
+        <span><strong>Firefox </strong></span>
+        
           
           
-          
-          
-          <img src="https://thepaciellogroup.github.io/cupper/images/browser-firefox.svg" alt="">
-          <span><strong>Firefox</strong></span>
           <span class="additional">with <strong>JAWS</strong></span>
         
       </td>
     
       <td>
         
-          
-          
-          <img src="https://thepaciellogroup.github.io/cupper/images/browser-chrome.svg" alt="">
-          <span><strong>Chrome</strong></span>
+        
+        
+        
+        <img src="https://thepaciellogroup.github.io/cupper/images/browser-chrome.svg" alt="">
+        <span><strong>Chrome </strong></span>
         
       </td>
     
       <td>
         
+        
+        
+        
+        <img src="https://thepaciellogroup.github.io/cupper/images/browser-safari-ios.svg" alt="">
+        <span><strong>Safari iOS </strong></span>
+        
           
           
-          
-          
-          <img src="https://thepaciellogroup.github.io/cupper/images/browser-safari-ios.svg" alt="">
-          <span><strong>Safari iOS</strong></span>
           <span class="additional">with <strong>Voiceover</strong></span>
         
       </td>
     
       <td>
         
-          
-          
-          <img src="https://thepaciellogroup.github.io/cupper/images/browser-edge.svg" alt="">
-          <span><strong>Edge</strong></span>
+        
+        
+        
+        <img src="https://thepaciellogroup.github.io/cupper/images/browser-edge.svg" alt="">
+        <span><strong>Edge </strong></span>
         
       </td>
     

文件差異過大導致無法顯示
+ 0 - 0
docs/service-worker.js


+ 5 - 0
lib/.pa11yci

@@ -0,0 +1,5 @@
+{
+    "defaults": {
+        "timeout": 5000
+    }
+}

+ 3 - 2
package.json

@@ -8,8 +8,9 @@
     "serve": "hugo server --baseURL http://localhost:1313",
     "clean": "node lib/clean.js",
     "build": "node lib/build.js",
-    "update": "node lib/update.js"
-    },
+    "update": "node lib/update.js",
+    "a11y": "(npm list pa11y-ci || npm install -g pa11y-ci) && pa11y-ci --sitemap http://localhost:1313/sitemap.xml --config lib/.pa11yci"
+  },
   "pre-commit": [
     "build"
   ],

部分文件因文件數量過多而無法顯示