-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
breaking(Pagination): rename ariaLabel
prop aria-label
#2607
Conversation
💖 Thanks for opening this pull request! 💖 Here is a list of things that will help get it across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
Codecov Report
@@ Coverage Diff @@
## master #2607 +/- ##
==========================================
- Coverage 99.74% 99.74% -0.01%
==========================================
Files 160 160
Lines 2751 2748 -3
==========================================
- Hits 2744 2741 -3
Misses 7 7
Continue to review full report at Codecov.
|
Let's modify |
I might be wrong, but the problem is not with the
While going further down the road, I saw that PaginationItems are created. Looking into
So the PaginationItem creates a
After modifying the above line to handle ariaLabel as a special prop and manually inserting it into the element as aria-label (as per react docs), the github pages build stopped giving the warning. Again, I might be wrong, it's my first pull request, but I did try to understand what happens. |
ariaLabel
prop aria-label
…React into fix/pagination-label # Conflicts: # src/collections/Menu/MenuItem.js
@AndreiEnache in fact, problem is with-in |
@layershifter You're right! |
Released in |
* fix(MenuItem): Invalid ARIA attribute ariaLabel * Fixes trailing whitespace * Fixes line length * fix(Pagination): update usage of 'aria-label' prop * fix(Pagination): update usage of 'aria-label' prop
BREAKING CHANGE
This PR renames
ariaLabel
prop that used inPagination
component to the nativearia-label
prop.Before
After
Fixes #2601.
It also requires update to latest version of
babel-plugin-transform-react-handled-props
because previos version have problems with parse of string properties.