-
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): add adapters and foundations #6165
feat(segmented-button): add adapters and foundations #6165
Conversation
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. Nice!
Added few minor comments. Remove mdc- prefix from in PR title. (feat(segmented-button)
). Send PR for review?
LGTM! |
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.
Left few minor comments.
The build fails because there are method arguments that aren't being used until the business logic is implemented. |
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.
You can prefix unused variable with underscore to avoid unused lint errors. Also remove any unused empty private methods. You can add it in later PRs.
Let me know if that works.
That fixed it. Now it's only failing because master's bundler has a reference to mdc-tooltip which doesn't seem to exist. |
Rebasing your branch with upstream should fix the issue. tooltip is newly added package. |
I'm up to date with upstream master. It looks like the material-components-web build is broken too, caused by commit b0c456d. This commit reverted the commit that added mdc-tooltip by deleting its directory, but there are still references to it in https://github.com/material-components/material-components-web/blob/master/scripts/webpack/css-bundle-factory.js, and https://github.com/material-components/material-components-web/blob/master/scripts/webpack/js-bundle-factory.js. |
b9394dc should fix the build. can you rebase your branch? |
add foundation and adapter classes for MDCSegmentedButton and MDCSegmentedButtonSegment Links to issue #6069
add newlines for minor style improvement
remove unnecessary whitespace and resolved comment
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
add TSDoc comments to event and detail interfaces
pull aria manipulation into helper function to clean and simplify code
remove TODOs and unused adapter methods
add documentation to types interfaces, remove unnused adapter methods, add new adapter and foundation methods
make small changes to fix build
Great! This PR is ready to merge. |
add foundation and adapter classes for MDCSegmentedButton and MDCSegmentedButtonSegment