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

feat(segmented-button): Added foundation business logic #6198

Merged
merged 15 commits into from
Jul 14, 2020
Merged

feat(segmented-button): Added foundation business logic #6198

merged 15 commits into from
Jul 14, 2020

Conversation

gschrag
Copy link
Collaborator

@gschrag gschrag commented Jul 8, 2020

No description provided.

Copy link
Collaborator

@abhiomkar abhiomkar left a comment

Choose a reason for hiding this comment

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

LGTM.

@gschrag
Copy link
Collaborator Author

gschrag commented Jul 14, 2020

This PR should be ready to merge.

@abhiomkar
Copy link
Collaborator

@e111077 Can you approve this PR?

Copy link

@e111077 e111077 left a comment

Choose a reason for hiding this comment

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

oops sorry. Slipped through the cracks. LGTM!

implement segment/foundation without accessibility
add aria-checked and aria-pressed manipulation for accessibility
implemented segmented-button foundation
improve name of isSingleSelect and use correct reference for @material/base
pull aria manipulation into helper function to clean and simplify code
add unit test outlines for segmented-button foundation
test segmented-button foundation business logic
wrap related tests in a describe block
child segment does not unselect self if singleSelect, so parent
segmented-button does not need to check this
…nselect

tested functionality is now in segment foundation
change logic from deny unselect to multiSelect to deny unselect to
singleSelect
test new segment foundation business logic
better describe test cases, pull constants into separate files
fix test that fails due to unexpected unnecessary method calls
reorganize for more clear constants files and constant names
Copy link
Collaborator

@abhiomkar abhiomkar left a comment

Choose a reason for hiding this comment

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

Looks great! 💯

@abhiomkar abhiomkar changed the title feat: add segmented-button foundation business logic feat(segmented-button): Added foundation business logic Jul 14, 2020
@abhiomkar abhiomkar merged commit e6e2301 into material-components:master Jul 14, 2020
@gschrag gschrag mentioned this pull request Jul 14, 2020
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants