Skip to content

Commit

Permalink
revert accordion changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed Nov 27, 2024
1 parent 0030f12 commit 3cd6bb4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 33 deletions.
12 changes: 0 additions & 12 deletions docs/pages/joy-ui/api/accordion.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,6 @@
"class": "MuiAccordion-root"
}
],
"cssVariables": {
"--accordion-panel-height": {
"description": "CSS variable for the Acccordion's panel height.",
"type": "number",
"deprecated": true,
"deprecationInfo": "Please use alternative."
},
"--accordion-panel-width": {
"description": "CSS variable for the Acccordion's panel height.",
"type": "string"
}
},
"classes": [
{
"key": "disabled",
Expand Down
6 changes: 1 addition & 5 deletions docs/translations/api-docs-joy/accordion/accordion.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,5 @@
"conditions": "<code>expanded</code> is true"
}
},
"slotDescriptions": { "root": "The component that renders the root." },
"cssVariablesDescriptions": {
"--accordion-panel-height": "CSS variable for the Acccordion&#39;s panel height.",
"--accordion-panel-width": "CSS variable for the Acccordion&#39;s panel height."
}
"slotDescriptions": { "root": "The component that renders the root." }
}
16 changes: 0 additions & 16 deletions packages/mui-joy/src/Accordion/accordionClasses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,4 @@ const accordionClasses: AccordionClasses = generateUtilityClasses('MuiAccordion'
'disabled',
]);

export type AccordionCssVars = {
/**
* CSS variable for the Acccordion's panel height.
* @deprecated Please use alternative.
* @type number
* */
accordionPanelHeight: string;
/** CSS variable for the Acccordion's panel height. */
accordionPanelWidth: string;
};

export const accordionCssVars: AccordionCssVars = {
accordionPanelHeight: '--accordion-panel-height',
accordionPanelWidth: '--accordion-panel-width',
};

export default accordionClasses;

0 comments on commit 3cd6bb4

Please sign in to comment.