-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat(segmented-button): Added foundation business logic #6198
Conversation
packages/mdc-segmented-button/segmented-button/test/foundation.test.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
This PR should be ready to merge. |
@e111077 Can you approve this PR? |
There was a problem hiding this 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! 💯
No description provided.