Skip to content

Commit

Permalink
Fix primefaces#5148: SpeedDial menu className and style
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Oct 24, 2023
1 parent 5ba6169 commit 0378434
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/lib/speeddial/SpeedDial.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export const SpeedDial = React.memo(
return null;
}

const { disabled, icon: _icon, label, template, url, target } = item;
const { disabled, icon: _icon, label, template, url, target, className: _itemClassName, style: _itemStyle } = item;
const contentClassName = classNames('p-speeddial-action', { 'p-disabled': disabled });
const iconClassName = classNames('p-speeddial-action-icon', _icon);
const actionIconProps = mergeProps(
Expand All @@ -185,7 +185,8 @@ export const SpeedDial = React.memo(
{
href: url || '#',
role: 'menuitem',
className: cx('action', { disabled }),
className: classNames(_itemClassName, cx('action', { disabled })),
style: _itemStyle,
target: target,
'data-pr-tooltip': label,
onClick: (e) => onItemClick(e, item)
Expand Down

0 comments on commit 0378434

Please sign in to comment.