Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(odyssey-react-mui): use component class name variables #1853

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

edburyenegren-okta
Copy link
Contributor

Description

Refactors our styling to use MUI variables rather than strings for class names wherever possible. For example, .${checkboxClasses.root} rather than ".MuiCheckbox-root".

Caveats

  • As far as I can tell, global state classes like .Mui-error do not have a source of truth. Instead, each component declares globalClasses individually and does not seem to export them.
  • Box does not export its only class, .MuiBox-root

Copy link
Contributor

@KevinGhadyani-Okta KevinGhadyani-Okta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad to finally have these all fixed up. I'm surprised there weren't hundreds of them!

I guess part of that is because MUI's not being diligent about exporting them.

Wanna update MUI and see if that gives you access to more classes?

@edburyenegren-okta edburyenegren-okta merged commit 24079d6 into develop Jun 27, 2023
@edburyenegren-okta edburyenegren-okta deleted the ee/class-names branch June 27, 2023 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants