-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[docs] Add demo for actions in ExpansionPanelSummary #17969
[docs] Add demo for actions in ExpansionPanelSummary #17969
Conversation
Details of bundle changes.Comparing: 36a7646...bd1b989
|
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.
This look good. There's a minor issue with the used ids though.
docs/src/pages/components/expansion-panels/ActionsInExpansionPanelSummary.js
Outdated
Show resolved
Hide resolved
@@ -134,7 +134,7 @@ const ExpansionPanelSummary = React.forwardRef(function ExpansionPanelSummary(pr | |||
})} | |||
edge="end" | |||
component="div" | |||
tabIndex={-1} | |||
tabIndex={null} |
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.
Fix:
Prior to this change, if you click the icon, the space
key action didn't trigger the expansion panel.
56e0a6e
to
cbb8674
Compare
cbb8674
to
46668ae
Compare
thanks for all of the fixes @oliviertassinari ! please let me know if there's anything else I can add |
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.
@eps1lon even better with the last commit 👍
@ayliao Thank you |
This PR adds an example demo for properly putting actions in the
ExpansionPanelSummary
as per #9427 (comment).Hopefully this qualifies as a "reasonable example"... it was hard to think of one since I don't think it is the original intention in Material Design to allow actions to be placed inside the summary to begin with (although I understand why someone may want to do so, and may need direction!).
Fixes #9427
Edit @eps1lon:
demo preview