From a5207810707d5541838eb81cc4448ecc08788732 Mon Sep 17 00:00:00 2001 From: Diego Andai Date: Fri, 5 Jan 2024 14:42:01 -0300 Subject: [PATCH] Deprecate AccordionSummary's contentGutters class --- docs/pages/material-ui/api/accordion-summary.json | 4 +++- .../src/AccordionSummary/accordionSummaryClasses.ts | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/pages/material-ui/api/accordion-summary.json b/docs/pages/material-ui/api/accordion-summary.json index 08388ce4937d85..05cd58c062fa4b 100644 --- a/docs/pages/material-ui/api/accordion-summary.json +++ b/docs/pages/material-ui/api/accordion-summary.json @@ -28,7 +28,9 @@ "key": "contentGutters", "className": "MuiAccordionSummary-contentGutters", "description": "Styles applied to the children wrapper element unless `disableGutters={true}`.", - "isGlobal": false + "isGlobal": false, + "isDeprecated": true, + "deprecationInfo": "Combine the .MuiAccordionSummary-gutters and .MuiAccordionSummary-content classes instead." }, { "key": "disabled", diff --git a/packages/mui-material/src/AccordionSummary/accordionSummaryClasses.ts b/packages/mui-material/src/AccordionSummary/accordionSummaryClasses.ts index 0be8219014deed..7f2c4669cb9668 100644 --- a/packages/mui-material/src/AccordionSummary/accordionSummaryClasses.ts +++ b/packages/mui-material/src/AccordionSummary/accordionSummaryClasses.ts @@ -12,7 +12,10 @@ export interface AccordionSummaryClasses { disabled: string; /** Styles applied to the root element unless `disableGutters={true}`. */ gutters: string; - /** Styles applied to the children wrapper element unless `disableGutters={true}`. */ + /** + * Styles applied to the children wrapper element unless `disableGutters={true}`. + * @deprecated Combine the [.MuiAccordionSummary-gutters](/material-ui/api/accordion-summary/#AccordionSummary-classes-gutters) and [.MuiAccordionSummary-content](/material-ui/api/accordion-summary/#AccordionSummary-classes-content) classes instead. + */ contentGutters: string; /** Styles applied to the children wrapper element. */ content: string;