[accordion] Remove deprecated props by silviuaavram · Pull Request #47963 · mui/material-ui (original) (raw)

Pull request overview

Removes previously-deprecated Accordion transition customization props (TransitionComponent, TransitionProps) as part of the v9 API surface, standardizing on the slots/slotProps customization model.

Changes:

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file

File Description
packages/mui-material/src/Accordion/Accordion.js Removes legacy transition props wiring and PropTypes entries.
packages/mui-material/src/Accordion/Accordion.d.ts Removes legacy transition props from the public TypeScript API.
packages/mui-material/src/Accordion/Accordion.test.js Migrates tests from legacy props to slots/slotProps.
docs/pages/material-ui/api/accordion.json Removes legacy props from generated API docs JSON.
docs/data/material/migration/upgrade-to-v9/upgrade-to-v9.md Adds v9 migration notes for the removed props.

Comments suppressed due to low confidence (1)

packages/mui-material/src/Accordion/Accordion.test.js:252

  describe('slotProps.transition', () => {
    it('should apply properties to the Transition component', () => {
      render(
        <Accordion slotProps={{ transition: { 'data-testid': 'transition-testid' } }}>
          {minimalChildren}
        </Accordion>,
      );

      expect(screen.getByTestId('transition-testid')).not.to.equal(null);