From bbc62888ee103f81546888e896ae81d0c2e4587f Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Fri, 10 May 2024 12:48:34 +0300 Subject: [PATCH] Refactor --- components/lib/drawer/Drawer.vue | 4 +--- doc/fieldset/AccessibilityDoc.vue | 6 +++--- doc/fieldset/TemplateDoc.vue | 8 ++++---- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/components/lib/drawer/Drawer.vue b/components/lib/drawer/Drawer.vue index 8b4269a96..5d1c3629b 100755 --- a/components/lib/drawer/Drawer.vue +++ b/components/lib/drawer/Drawer.vue @@ -46,7 +46,6 @@ import Button from 'primevue/button'; import FocusTrap from 'primevue/focustrap'; import TimesIcon from 'primevue/icons/times'; import Portal from 'primevue/portal'; -import Ripple from 'primevue/ripple'; import { DomHandler, ZIndexUtils } from 'primevue/utils'; import BaseDrawer from './BaseDrawer.vue'; @@ -224,8 +223,7 @@ export default { } }, directives: { - focustrap: FocusTrap, - ripple: Ripple + focustrap: FocusTrap }, components: { Button, diff --git a/doc/fieldset/AccessibilityDoc.vue b/doc/fieldset/AccessibilityDoc.vue index e4ea83515..91dd1c2ee 100644 --- a/doc/fieldset/AccessibilityDoc.vue +++ b/doc/fieldset/AccessibilityDoc.vue @@ -2,9 +2,9 @@

Screen Reader

- Fieldset component uses the semantic fieldset element. When toggleable option is enabled, a clickable element with button role is included inside the legend element, this button has aria-controls to define the - id of the content section along with aria-expanded for the visibility state. The value to read the button defaults to the value of the legend property and can be customized by defining an aria-label or - aria-labelledby via the toggleButtonProps property. + Fieldset component uses the semantic fieldset element. When toggleable option is enabled, a button element is included inside the legend element, this button has aria-controls to define the id of the content section + along with aria-expanded for the visibility state. The value to read the button defaults to the value of the legend property and can be customized by defining an aria-label or aria-labelledby via the + toggleButtonProps property.

The content uses region, defines an id that matches the aria-controls of the content toggle button and aria-labelledby referring to the id of the header.

diff --git a/doc/fieldset/TemplateDoc.vue b/doc/fieldset/TemplateDoc.vue index 802b5112a..566ab203b 100644 --- a/doc/fieldset/TemplateDoc.vue +++ b/doc/fieldset/TemplateDoc.vue @@ -7,7 +7,7 @@

@@ -29,7 +29,7 @@ export default {

@@ -45,7 +45,7 @@ export default {

@@ -66,7 +66,7 @@ export default {