Fixed #6377
parent
cb3f89a3a3
commit
982c4168a7
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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')">
|
||||
|
|
Loading…
Reference in New Issue