Skip to content

Commit 225c5aa

Browse files
committed
Fix visually-hidden content
The ToggleButton had a visually-hidden child which was _meant_ to hold the label, so that folks using screen-readers could understand what each option is. Unfortunately, I had left the "hello world" string in there! This commit addresses this oversight.
1 parent f837929 commit 225c5aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ToggleButton/ToggleButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const ToggleButton = ({
1616
className={styles.toggleButton}
1717
style={{ backgroundColor: color }}
1818
>
19-
<span className="visually-hidden">hello</span>
19+
<span className="visually-hidden">{label}</span>
2020
{children}
2121
</button>
2222
);

0 commit comments

Comments
 (0)