Skip to content

[docs] Replace makeStyles/withStyles with sx prop and styled #16947

Closed
@oliviertassinari

Description

@oliviertassinari

Following #6115, I think that we should migrate all our demos to use the Box component or styled-component. The goal is to hide @material-ui/styles as much as possible. styled-components keeps growing, a consolidation of this styling solution will be better, overall, for the React community.

Regarding the timing, I think that we can start to use the Box component now. For the demos that we can't migrate, we probably want to wait for the first proof of concept with #6115.

Attached is a list of component demos that should be migrated to the new style API.

Docs infra

  • AdCarbon.js
  • AdDisplay.js
  • AdReadthedocs.js
  • ComponentLinkHeader.js
  • Demo.js
  • DemoSandboxed.js
  • DemoToolbar.js
  • MarkdownElement.js
  • ErrorDecoder.js
  • Intentions.js
  • Pro.js
  • Quotes.js
  • Sponsors.js
  • Steps.js
  • Users.js
  • TopLayoutCompany.js
  • TopLayoutBlog [docs] Cleanup remaining @mui/styles usages #32313
  • Ad
  • Team

Misc

Layout

Inputs

Navigation

Surfaces

Feedback

Data Display

Utils

Lab

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsImprovements or additions to the documentationpriority: importantThis change can make a differenceready to takeHelp wanted. Guidance available. There is a high chance the change will be accepted

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions