pull/5756/head
tugcekucukoglu 2024-05-10 12:48:34 +03:00
parent d4be481ec8
commit bbc62888ee
3 changed files with 8 additions and 10 deletions

View File

@ -46,7 +46,6 @@ import Button from 'primevue/button';
import FocusTrap from 'primevue/focustrap'; import FocusTrap from 'primevue/focustrap';
import TimesIcon from 'primevue/icons/times'; import TimesIcon from 'primevue/icons/times';
import Portal from 'primevue/portal'; import Portal from 'primevue/portal';
import Ripple from 'primevue/ripple';
import { DomHandler, ZIndexUtils } from 'primevue/utils'; import { DomHandler, ZIndexUtils } from 'primevue/utils';
import BaseDrawer from './BaseDrawer.vue'; import BaseDrawer from './BaseDrawer.vue';
@ -224,8 +223,7 @@ export default {
} }
}, },
directives: { directives: {
focustrap: FocusTrap, focustrap: FocusTrap
ripple: Ripple
}, },
components: { components: {
Button, Button,

View File

@ -2,9 +2,9 @@
<DocSectionText id="accessibility" label="Accessibility" v-bind="$attrs"> <DocSectionText id="accessibility" label="Accessibility" v-bind="$attrs">
<h3>Screen Reader</h3> <h3>Screen Reader</h3>
<p> <p>
Fieldset component uses the semantic <i>fieldset</i> element. When toggleable option is enabled, a clickable element with <i>button</i> role is included inside the <i>legend</i> element, this button has <i>aria-controls</i> to define the Fieldset component uses the semantic <i>fieldset</i> element. When toggleable option is enabled, a button element is included inside the <i>legend</i> element, this button has <i>aria-controls</i> to define the id of the content section
id of the content section along with <i>aria-expanded</i> for the visibility state. The value to read the button defaults to the value of the <i>legend</i> property and can be customized by defining an <i>aria-label</i> or along with <i>aria-expanded</i> for the visibility state. The value to read the button defaults to the value of the <i>legend</i> property and can be customized by defining an <i>aria-label</i> or <i>aria-labelledby</i> via the
<i>aria-labelledby</i> via the <i>toggleButtonProps</i> property. <i>toggleButtonProps</i> property.
</p> </p>
<p>The content uses <i>region</i>, defines an id that matches the <i>aria-controls</i> of the content toggle button and <i>aria-labelledby</i> referring to the id of the header.</p> <p>The content uses <i>region</i>, defines an id that matches the <i>aria-controls</i> of the content toggle button and <i>aria-labelledby</i> referring to the id of the header.</p>

View File

@ -7,7 +7,7 @@
<template #legend> <template #legend>
<div class="flex align-items-center pl-2"> <div class="flex align-items-center pl-2">
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" shape="circle" /> <Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" shape="circle" />
<span class="font-bold">Amy Elsner</span> <span class="font-bold p-2">Amy Elsner</span>
</div> </div>
</template> </template>
<p class="m-0"> <p class="m-0">
@ -29,7 +29,7 @@ export default {
<template #legend> <template #legend>
<div class="flex align-items-center pl-2"> <div class="flex align-items-center pl-2">
<Avatar image="/images/avatar/amyelsner.png" shape="circle" /> <Avatar image="/images/avatar/amyelsner.png" shape="circle" />
<span class="font-bold">Amy Elsner</span> <span class="font-bold p-2">Amy Elsner</span>
</div> </div>
</template> </template>
<p class="m-0"> <p class="m-0">
@ -45,7 +45,7 @@ export default {
<template #legend> <template #legend>
<div class="flex align-items-center pl-2"> <div class="flex align-items-center pl-2">
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" shape="circle" /> <Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" shape="circle" />
<span class="font-bold">Amy Elsner</span> <span class="font-bold p-2">Amy Elsner</span>
</div> </div>
</template> </template>
<p class="m-0"> <p class="m-0">
@ -66,7 +66,7 @@ export default {
<template #legend> <template #legend>
<div class="flex align-items-center pl-2"> <div class="flex align-items-center pl-2">
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" shape="circle" /> <Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" shape="circle" />
<span class="font-bold">Amy Elsner</span> <span class="font-bold p-2">Amy Elsner</span>
</div> </div>
</template> </template>
<p class="m-0"> <p class="m-0">