Skip to content

Rename isCollapsed to isExpanded#54

Merged
marouanekadiri merged 1 commit intomarouanekadiri:masterfrom
robinheinze:master
Feb 20, 2021
Merged

Rename isCollapsed to isExpanded#54
marouanekadiri merged 1 commit intomarouanekadiri:masterfrom
robinheinze:master

Conversation

@robinheinze
Copy link
Copy Markdown

While using this library, I found myself confused because setting isCollapsed to true was resulting in the component displaying the body rather than hiding it. I then read the documentation more carefully, and the README in fact says next to isCollapsed: "show the CollapseBody if true" . So it was working as intended, but not working as my intuition would lead me to believe, since the word "collapse" means to hide, or compress.

So this PR suggests a name change from isCollapsed to isExpanded, to better describe the intended functionality of the prop.

All tests passing:

Screen Shot 2021-02-19 at 9 58 08 AM

@marouanekadiri marouanekadiri merged commit 7057cb5 into marouanekadiri:master Feb 20, 2021
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.

2 participants