Skip to content

Commit 043faa3

Browse files
committed
remove default aria-label from share buttons
#397
1 parent 17a3d7d commit 043faa3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.changeset/fair-maps-thank.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-share": major
3+
---
4+
5+
Removed default `aria-label` prop from `ShareButtons`. Before it defaulted to the name of the "network name" (e.g. "facebook" for Facebook). Issue explained [here](https://github.com/nygardk/react-share/issues/397).

src/ShareButton.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ export default function ShareButton<LinkOptions extends Record<string, unknown>>
189189
return (
190190
<button
191191
{...rest}
192-
aria-label={rest['aria-label'] || networkName}
193192
className={newClassName}
194193
onClick={handleClick}
195194
ref={forwardedRef}

0 commit comments

Comments
 (0)