Skip to content
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

Pagination: invalid ARIA attribute ariaLabel #2601

Closed
AndreiEnache opened this issue Mar 5, 2018 · 7 comments
Closed

Pagination: invalid ARIA attribute ariaLabel #2601

AndreiEnache opened this issue Mar 5, 2018 · 7 comments
Labels

Comments

@AndreiEnache
Copy link
Contributor

Steps

Create a small pagination component.
When the component mounts, a warning is displayed.

Expected Result

Not show the warning.

Actual Result

Shows the warning.

Version

  • semantic-ui-react: 0.78.3
  • react: 16.2.0
  • react-dom: 16.2.0

Testcase

https://codesandbox.io/s/9l90v9xnwp

@welcome
Copy link

welcome bot commented Mar 5, 2018

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you've completed all the fields in the issue template so we can best help.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@brianespinosa
Copy link
Member

Valid bug. I do not think this is a duplicate. PRs welcome.

@tphan18
Copy link

tphan18 commented Mar 8, 2018

Confirmed. This is a valid bug.

@layershifter layershifter changed the title Pagination component Warning: Invalid ARIA attribute ariaLabel. Did you mean aria-label? Pagination: invalid ARIA attribute ariaLabel Mar 11, 2018
@gtod
Copy link

gtod commented Mar 16, 2018

I think the problem is that the arialLabel prop on PaginationItem is being copied into the MenuItem in addition to the correct aria-label prop.

I say this only because if you replace the current MenuItem.create line here with the following 3 lines the error goes away:

  var props = Object.assign({}, this.props);
  delete props.ariaLabel;
  return MenuItem.create(props, {

@brianespinosa
Copy link
Member

@gtod there is already a PR being worked on for this. 🎉 Please see above history for reference to #2607

@tphan18
Copy link

tphan18 commented Mar 22, 2018

I don't think the issue is fixed in v0.79.0.

@layershifter
Copy link
Member

Create a new issue with repro on codesandbox, please.

@Semantic-Org Semantic-Org locked as resolved and limited conversation to collaborators Mar 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants