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

add aria-expanded attribute to Collapse and UncontrolledCollapse #1627 #1656

Closed
wants to merge 7 commits into from

Conversation

nylon22
Copy link
Contributor

@nylon22 nylon22 commented Oct 10, 2019

adds aria-expanded attribute to <Collapse /> and <UncontrolledCollapse /> components for accessibility

  • Bug fix
  • New feature
  • Chore
  • Breaking change
  • There is an open issue which this change addresses
  • I have read the CONTRIBUTING document.
  • My commits follow the Git Commit Guidelines
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

closes #1627

Tyson Warner added 7 commits October 7, 2019 11:57
…op in CarouselItems

See reactstrap#1536

Resolves issue where if the UncontrolledCarousel contains CarouselItems with the same src, the following react error gets emitted:

```
Warning: Encountered two children with the same key, `https://xxx.png`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
```
@@ -49,7 +49,7 @@ class UncontrolledCollapse extends Component {
}

render() {
return <Collapse isOpen={this.state.isOpen} {...omit(this.props, omitKeys)} />;
return <Collapse isOpen={this.state.isOpen} {...omit(this.props, omitKeys)} aria-expanded={this.state.isOpen ? 'true' : 'false'} />;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this cascade down to the Collapse which would use the value of it's isOpen prop similarly to add this?

@TheSharpieOne
Copy link
Member

@nylon22 You need to reset your master. Every new PR you create includes all of the other commits from the other PRs.
You should reset your master and start using new branches for each PR.

@nylon22
Copy link
Contributor Author

nylon22 commented Oct 10, 2019

closing in favor of #1657

@nylon22 nylon22 closed this Oct 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collapse Accessibility
2 participants