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

Conversation

gschrag
Copy link
Collaborator

@gschrag gschrag commented Jul 8, 2020

No description provided.

@gschrag gschrag force-pushed the feat/segmented-button__foundation-business branch from dfd04d7 to dbe1339 Compare July 10, 2020 23:51
Copy link
Contributor

@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 gschrag force-pushed the feat/segmented-button__foundation-business branch from c778e4f to bcac084 Compare July 14, 2020 00:59
@gschrag
Copy link
Collaborator Author

gschrag commented Jul 14, 2020

This PR should be ready to merge.

@abhiomkar
Copy link
Contributor

@e111077 Can you approve this PR?

Copy link
Member

@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
@gschrag gschrag force-pushed the feat/segmented-button__foundation-business branch from 4c853a3 to 2c6f042 Compare July 14, 2020 18:09
Copy link
Contributor

@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
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.

None yet

4 participants