diff --git a/doc/accessibility/ColorsDoc.vue b/doc/accessibility/ColorsDoc.vue index 841d74704..d8d8a8844 100644 --- a/doc/accessibility/ColorsDoc.vue +++ b/doc/accessibility/ColorsDoc.vue @@ -1,39 +1,39 @@ diff --git a/doc/accessibility/FormControlsDoc.vue b/doc/accessibility/FormControlsDoc.vue index 9564b3929..3eab18dd4 100644 --- a/doc/accessibility/FormControlsDoc.vue +++ b/doc/accessibility/FormControlsDoc.vue @@ -10,22 +10,28 @@ -

On the other hand, a fancy css based button using a div has no keyboard or screen reader support.

+
+

On the other hand, a fancy css based button using a div has no keyboard or screen reader support.

+

 <div class="fancy-button" @click="onButtonClick(event)">Click</div>
 
 
-

- tabindex is required to make a div element accessible in addition to use a keydown to bring the keyboard support back. To avoid the overload and implementing functionality that is already provided by the browser, native form controls - should be preferred. -

+
+

+ tabindex is required to make a div element accessible in addition to use a keydown to bring the keyboard support back. To avoid the overload and implementing functionality that is already provided by the browser, native form + controls should be preferred. +

+

 <div class="fancy-button" @click="onClick(event)" @keydown="onKeyDown(event)" tabindex="0">Click</div>
 
 
-

Form components must be related to another element that describes what the form element is used for. This is usually achieved with the label element.

+
+

Form components must be related to another element that describes what the form element is used for. This is usually achieved with the label element.

+

 <label for="myinput">Username:</label>
 <input id="myinput" type="text" name="username" />
diff --git a/doc/accessibility/IntroductionDoc.vue b/doc/accessibility/IntroductionDoc.vue
index f2f862914..d634749fc 100644
--- a/doc/accessibility/IntroductionDoc.vue
+++ b/doc/accessibility/IntroductionDoc.vue
@@ -1,39 +1,38 @@
 
diff --git a/doc/accessibility/SemanticHTMLDoc.vue b/doc/accessibility/SemanticHTMLDoc.vue
index 657b4f25e..5072bb749 100644
--- a/doc/accessibility/SemanticHTMLDoc.vue
+++ b/doc/accessibility/SemanticHTMLDoc.vue
@@ -26,7 +26,9 @@
 
 
-

Same layout can be achieved using the semantic elements with screen reader support built-in.

+
+

Same layout can be achieved using the semantic elements with screen reader support built-in.

+

 <header>
     <h1>Header</h1>
diff --git a/doc/accessibility/WAIAriaDoc.vue b/doc/accessibility/WAIAriaDoc.vue
index 10c4faced..0957e828f 100644
--- a/doc/accessibility/WAIAriaDoc.vue
+++ b/doc/accessibility/WAIAriaDoc.vue
@@ -18,10 +18,12 @@
 
 
-

- A fancy checkbox with css animations might look more appealing but accessibility might be lacking. Checkbox below may display a checked font icon with animations however it is not tabbable, cannot be checked with space key and cannot be read - by a reader. -

+
+

+ A fancy checkbox with css animations might look more appealing but accessibility might be lacking. Checkbox below may display a checked font icon with animations however it is not tabbable, cannot be checked with space key and cannot be + read by a reader. +

+

 <div class="fancy-checkbox">
     <i class="checked-icon" v-if="checked"></i>
@@ -29,7 +31,9 @@
 
 
-

One alternative is using ARIA roles for readers and use javascript for keyboard support. Notice the usage of aria-labelledby as a replacement of the label tag with for.

+
+

One alternative is using ARIA roles for readers and use javascript for keyboard support. Notice the usage of aria-labelledby as a replacement of the label tag with for.

+

 <span id="chk-label">Remember Me</span>
 <div class="fancy-checkbox" role="checkbox" aria-checked="false" tabindex="0" aria-labelledby="chk-label"
@@ -39,11 +43,13 @@
 
 
-

- However the best practice is combining semantic HTML for accessibility while keeping the design for UX. This approach involves hiding a native checkbox for accessibility and using javascript events to update its state. Notice the usage of - p-sr-only - that hides the elements from the user but not from the screen reader. -

+
+

+ However the best practice is combining semantic HTML for accessibility while keeping the design for UX. This approach involves hiding a native checkbox for accessibility and using javascript events to update its state. Notice the usage of + p-sr-only + that hides the elements from the user but not from the screen reader. +

+

 <label for="chkbox">Remember Me</label>
 <div class="fancy-checkbox" @click="toggle">
@@ -54,7 +60,9 @@
 
 
-

A working sample is the PrimeVue checkbox that is tabbable, keyboard accessible and is compliant with a screen reader. Instead of ARIA roles it relies on a hidden native checkbox.

+
+

A working sample is the PrimeVue checkbox that is tabbable, keyboard accessible and is compliant with a screen reader. Instead of ARIA roles it relies on a hidden native checkbox.

+
diff --git a/doc/accessibility/WCAGDoc.vue b/doc/accessibility/WCAGDoc.vue index a6aec4b03..1e3f438e7 100644 --- a/doc/accessibility/WCAGDoc.vue +++ b/doc/accessibility/WCAGDoc.vue @@ -9,7 +9,6 @@ refers to Web Content Accessibility Guideline, a standard managed by the WAI (Web Accessibility Initiative) of W3C (World Wide Web Consortium). WCAG consists of recommendations for making the web content more accessible. PrimeVue components aim high level of WCAG compliancy in the near future.

-

Various countries around the globe have governmental policies regarding web accessibility as well. Most well known of these are Section 508 in the US and Web Accessibility Directive of the European Union. diff --git a/pages/accessibility/index.vue b/pages/accessibility/index.vue index 005ce387f..774ce2bd7 100644 --- a/pages/accessibility/index.vue +++ b/pages/accessibility/index.vue @@ -10,6 +10,7 @@

Accessibility

An introduction to accessibility and how it translates to Vue UI Components.

+

PrimeVue has WCAG 2.1 AA level compliancy. Refer to the accessibility documentation of each component for detailed information.