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

Feature/expander title checkbox #415

Merged
merged 9 commits into from
Dec 16, 2020

Conversation

aappoalander
Copy link
Contributor

Description

This PR introduces ExpanderTitle as a variant for ExpanderTitleButton. ExpanderTitle only has open / close button on the far right of the title to support focusable content on the remaining title area. This makes it possible to use the expander with common use cases like checkbox in the expander title.

In addition, most of the Expander related tests are rearranged or refactored so that each component now have separate test files.

Motivation and Context

There was a clear need to support focusable content on the expander title and the variant with whole title are as button did not work with these use cases.

How Has This Been Tested?

Tested with Styleguidist, CRA TypeScript, SSR application by using VoiceOver with Chrome, Firefox and Safari and by using NVDA with Chrome, Firefox, Edge and IE.

Screenshots (if appropriate):

Screenshot 2020-12-10 at 7 49 47

Release notes

  • ExpanderTitle component to support interactive content on expander titles.

@aappoalander aappoalander added the enhancement New feature or request label Dec 10, 2020
@aappoalander aappoalander self-assigned this Dec 10, 2020
ketsappi
ketsappi previously approved these changes Dec 14, 2020
@ketsappi
Copy link
Contributor

Looking good.
Comprehensive tests added which is nice 🚀

Copy link
Collaborator

@LJKaski LJKaski left a comment

Choose a reason for hiding this comment

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

Looks good to me. Good work! :)

@aappoalander aappoalander merged commit 08edfe8 into develop Dec 16, 2020
@aappoalander aappoalander deleted the feature/expander-title-checkbox branch December 30, 2020 11:51
@aappoalander aappoalander mentioned this pull request Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants