pull/6391/head
tugcekucukoglu 2024-09-11 13:02:41 +03:00
parent cb3f89a3a3
commit 982c4168a7
2 changed files with 13 additions and 5 deletions

View File

@ -150,10 +150,6 @@ export interface ToggleButtonProps {
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
*/
ariaLabelledby?: string | undefined;
/**
* Establishes a string value that labels the component.
*/
ariaLabel?: string | undefined;
/**
* It generates scoped CSS variables using design tokens for the component.
*/

View File

@ -1,5 +1,17 @@
<template>
<button v-ripple type="button" :class="cx('root')" :tabindex="tabindex" :disabled="disabled" :aria-pressed="modelValue" @click="onChange" v-bind="getPTOptions('root')" :data-p-checked="active" :data-p-disabled="disabled">
<button
v-ripple
type="button"
:class="cx('root')"
:tabindex="tabindex"
:disabled="disabled"
:aria-pressed="modelValue"
@click="onChange"
v-bind="getPTOptions('root')"
:aria-labelledby="ariaLabelledby"
:data-p-checked="active"
:data-p-disabled="disabled"
>
<span :class="cx('content')" v-bind="getPTOptions('content')">
<slot>
<slot name="icon" :value="modelValue" :class="cx('icon')">