Skip to content

Commit

Permalink
#2294 Fix Accessibility Violations - 2
Browse files Browse the repository at this point in the history
Signed-off-by: srikant <[email protected]>
  • Loading branch information
srikant-ch5 committed Jan 9, 2025
1 parent 637e7ea commit 94da5a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion canvas_modules/common-canvas/src/icons/icon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default class Icon extends React.Component {
icon = this.getCanvasIcon(this.props.type);
if (typeof icon !== "undefined") {
const className = classNames("canvas-icon", iconClassName, this.props.className);
icon = <SVG src={icon} className={className} disabled={this.props.disabled} />;
icon = <SVG src={icon} className={className} disabled={this.props.disabled} aria-label={this.props.type} />;
} else {
icon = <div />;
}
Expand Down

0 comments on commit 94da5a9

Please sign in to comment.