Skip to content

Commit

Permalink
fix(a11y): avoid empty label in ToggleSmall (carbon-design-system#1771)
Browse files Browse the repository at this point in the history
  • Loading branch information
asudoh authored Jan 25, 2019
1 parent ed05ce9 commit 45972b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ToggleSmall/ToggleSmall.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const ToggleSmall = ({
</svg>
)}
</span>
<span class={`${prefix}--assistive-text`}>{ariaLabel}</span>
</label>
</div>
);
Expand Down

0 comments on commit 45972b4

Please sign in to comment.