
The summary text should be more legible.
Steps:
tab key to navigate to an expansion panel summary elementThe context is accessibility.
Inputting the values into https://webaim.org/resources/contrastchecker/:

Maybe for darken theme is better to use 600: '#757575'; instead of 300: '#e0e0e0';
Wow, it has been broken like this for 2 years 馃檭. How is this even possible. Do people use the accordion or dark mode at all 馃槺?
What about this diff?
diff --git a/packages/material-ui/src/ExpansionPanelSummary/ExpansionPanelSummary.js b/packages/material-ui/src/ExpansionPanelSummary/ExpansionPanelSummary.js
index b61281403..c476e7d30 100644
--- a/packages/material-ui/src/ExpansionPanelSummary/ExpansionPanelSummary.js
+++ b/packages/material-ui/src/ExpansionPanelSummary/ExpansionPanelSummary.js
@@ -25,10 +25,10 @@ export const styles = (theme) => {
minHeight: 64,
},
'&$focused': {
- backgroundColor: theme.palette.grey[300],
+ backgroundColor: theme.palette.action.focus,
},
'&$disabled': {
- opacity: 0.38,
+ opacity: theme.palette.action.disabledOpacity,
},
},
/* Pseudo-class applied to the root element, children wrapper element and `IconButton` component if `expanded={true}`. */
I have tried and can be good
Am i mistake or I saw a PR for this?