Skip to content

Commit a12c5b0

Browse files
authored
Merge pull request #329 from OneNoteDev/bug/selected-state-on-mode-buttons
[Bug] Add aria-selected and aria-role on mode buttons
2 parents c1bd8e7 + dccf736 commit a12c5b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/scripts/clipperUI/components/modeButton.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ class ModeButtonClass extends ComponentBase<{}, ModeButtonProps> {
2929
let idName: string = clipMode + "Button";
3030

3131
return (
32-
<a className={className} id={idName} title={this.props.tooltipText ? this.props.tooltipText : ""}
32+
<a className={className} aria-selected={this.props.selected} aria-role="button"
33+
id={idName} title={this.props.tooltipText ? this.props.tooltipText : ""}
3334
{...this.enableInvoke(this.buttonHandler, this.props.tabIndex) }>
3435
<img className="icon" src={this.props.imgSrc} />
3536
<span className="label buttonLabelFont"

0 commit comments

Comments
 (0)