-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Remove 'withSpokenMessages' HoC from the Link format #53106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Size Change: -26 B (0%) Total Size: 1.44 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks simpler indeed 👍 No need for another HoC to wrap it just for that.
Makes you wonder why withSpokenMessages
exists in the first place 😉
🚢
Leftovers from the time when HoCs were everywhere 😄 |
What?
PR removes 'withSpokenMessages' HoC from the Link format popover and uses the
speak
method.Why?
There's no need to wrap components in HoC when we can call methods directly.
Testing Instructions
CI checks are green.
The a11y announcements have test coverage.