Skip to content

Conversation

@catepalmer
Copy link
Contributor

This pull request gives a potential fix to #150, which suggested that aligning component names with the WAI-ARIA spec to remove ambiguity would be a good idea. Have renamed AccordionItemTitle to AccordionItemHeading and AccordionItemBody to AccordionItemPanel, along with the corresponding CSS class names (accordion__title and accordion__body).

At this stage I've just replaced all the component names entirely (as a breaking change) rather than as a deprecation (with the old component names still exported to alongside the new ones, but with warnings). If it still seems like a good idea to do this as a deprecation, the old names could be added back with that functionality.

@catepalmer catepalmer requested a review from ryami333 January 16, 2019 03:34
Copy link
Contributor

@ryami333 ryami333 left a comment

Choose a reason for hiding this comment

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

This looks good to me, with one exception: could you please revert the Changelog.md changes? As an historical log, those should reflect the names of the components at the time the changes were made. Cheers!

@coveralls
Copy link

Coverage Status

Coverage remained the same at 99.405% when pulling 5e0ef6c on chore/component-naming-changes into 1f6befc on master.

@ryami333
Copy link
Contributor

Nicely done, merge away 🍷

@catepalmer catepalmer merged commit 13b8a41 into master Jan 16, 2019
ryami333 added a commit that referenced this pull request Jan 16, 2019
…g-changes"

This reverts commit 13b8a41, reversing
changes made to 1f6befc.
ryami333 pushed a commit that referenced this pull request Jan 16, 2019
Change names of AccordionItemTitle and AccordionItemBody
@catepalmer catepalmer deleted the chore/component-naming-changes branch January 17, 2019 03:10
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.

4 participants