diff --git a/components/lib/speeddial/SpeedDial.d.ts b/components/lib/speeddial/SpeedDial.d.ts index 9c20fca4e..d38fc569a 100644 --- a/components/lib/speeddial/SpeedDial.d.ts +++ b/components/lib/speeddial/SpeedDial.d.ts @@ -8,6 +8,7 @@ * */ import { VNode } from 'vue'; +import { ButtonPassThroughOptions } from '../button'; import { MenuItem } from '../menuitem'; import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; @@ -33,12 +34,9 @@ export interface SpeedDialPassThroughOptions { root?: SpeedDialPassThroughOptionType; /** * Uses to pass attributes to the button's DOM element. + * @see {@link ButtonPassThroughOptions} */ - button?: SpeedDialPassThroughOptionType; - /** - * Uses to pass attributes to the icon's DOM element. - */ - icon?: SpeedDialPassThroughOptionType; + button?: ButtonPassThroughOptions; /** * Uses to pass attributes to the menu's DOM element. */ diff --git a/components/lib/speeddial/SpeedDial.vue b/components/lib/speeddial/SpeedDial.vue index cf272984d..e88b40525 100644 --- a/components/lib/speeddial/SpeedDial.vue +++ b/components/lib/speeddial/SpeedDial.vue @@ -12,12 +12,12 @@ :aria-controls="id + '_list'" :aria-label="ariaLabel" :aria-labelledby="ariaLabelledby" - v-bind="ptm('button')" + :pt="ptm('button')" > diff --git a/components/lib/splitbutton/SplitButton.d.ts b/components/lib/splitbutton/SplitButton.d.ts index 98f1cbd46..9b9689485 100755 --- a/components/lib/splitbutton/SplitButton.d.ts +++ b/components/lib/splitbutton/SplitButton.d.ts @@ -8,6 +8,7 @@ * */ import { ButtonHTMLAttributes, VNode } from 'vue'; +import { ButtonPassThroughOptions } from '../button'; import { MenuItem } from '../menuitem'; import { TieredMenuPassThroughOptions } from '../tieredmenu'; import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; @@ -41,12 +42,9 @@ export interface SplitButtonPassThroughOptions { icon?: SplitButtonPassThroughOptionType; /** * Uses to pass attributes to the menu button's DOM element. + * @see {@link ButtonPassThroughOptions} */ - menuButton?: SplitButtonPassThroughOptionType; - /** - * Uses to pass attributes to the menu button icon's DOM element. - */ - menuButtonIcon?: SplitButtonPassThroughOptionType; + menuButton?: ButtonPassThroughOptions; /** * Uses to pass attributes to the menu's DOM element. * @see {@link TieredMenuPassThroughOptions} diff --git a/components/lib/splitbutton/SplitButton.vue b/components/lib/splitbutton/SplitButton.vue index e65b0414c..ecbac443f 100755 --- a/components/lib/splitbutton/SplitButton.vue +++ b/components/lib/splitbutton/SplitButton.vue @@ -19,11 +19,12 @@ :aria-controls="ariaId + '_overlay'" @click="onDropdownButtonClick" @keydown="onDropdownKeydown" - v-bind="{ ...menuButtonProps, ...ptm('menuButton') }" + :pt="ptm('menuButton')" + v-bind="menuButtonProps" >