Skip to content

Commit

Permalink
Fix #3254: SpeedDial pass aria-label through to button (#3255)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Sep 7, 2022
1 parent d136962 commit 9b52d85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/lib/speeddial/SpeedDial.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export const SpeedDial = React.memo(
[`${props.hideIcon}`]: visible && !!props.hideIcon
});
const icon = IconUtils.getJSXIcon(showIconVisible ? props.showIcon : hideIconVisible ? props.hideIcon : null, undefined, { props });
const content = <Button type="button" style={props.buttonStyle} className={className} icon={icon} onClick={onClick} disabled={props.disabled} />;
const content = <Button type="button" style={props.buttonStyle} className={className} icon={icon} onClick={onClick} disabled={props.disabled} aria-label={props['aria-label']} />;

if (props.buttonTemplate) {
const defaultContentOptions = {
Expand Down Expand Up @@ -290,6 +290,7 @@ SpeedDial.defaultProps = {
buttonStyle: null,
buttonClassName: null,
buttonTemplate: null,
'aria-label': null,
maskStyle: null,
maskClassName: null,
showIcon: 'pi pi-plus',
Expand Down

0 comments on commit 9b52d85

Please sign in to comment.