-
Notifications
You must be signed in to change notification settings - Fork 12
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
Migrate Doc-It to MUI5 and latest dependencies #601
Conversation
Visit the preview URL for this PR (updated for commit f40e73c): https://blui-doc-it--pr601-feature-mui5-migrati-j6cixaa3.web.app (expires Fri, 23 Dec 2022 16:54:11 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 590ed6fb71e127776beff0a05819e22fd4307b8f |
Not sure what the deal is with the link checker (I'm about ready to be done with it in the CI steps)...all of the ones being flagged are working. |
Yeah, it's an emotion thing. There are a couple places where we use :first-child (some of them could probably be replaced, others might actually have to be :first-child because we don't know what the type is). In either event, we're not using server-side rendering, so it's not a concern, and looking at the deployed dev-docs (which have the same rules in the markdown.css), the warning does not appear in the production build. |
This is actually a bug in our theme (https://github.com/brightlayer-ui/react-themes/blob/dev/src/blueTheme.ts#L185). We are setting the border color to 'divider' for all outlined buttons...we should have another themeOverride that tells outlinedInherit to use 'currentColor'. Passing in white to the sx will make it look correct for the blue theme, but any other holiday theme (or dark theme) that needs a different color border will be broken. It should ultimately get fixed in the theme (if you want to log a bug to track it that would be great) |
https://github.com/brightlayer-ui/react-themes/issues/50 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition to what Jeff said...
1
That console log triggers my nerve
2
Table of content differs in border color and font size. (Left: existing; right: new)
3
Convert your TODO.txt
at the root to issue reports
4
On the Typography page, the table color should be the same as its background
5
Are you planning to get rid of all the useTheme
hooks? Or some of the display: 'flex'
styles using MUI's <Stack>
component? Or migrate to MUI Grid v2? Should we do the update in the future, or is it "it ain't broke, don't fix it"?
6
Just curious, are you using MUI's "codemods" for the migration?
7
Just want to say thanks for the hard work during the holiday
I would recommend bundling up any lingering style issues into a new story. This was really just to get the MUI 5 upgrade to a workable state. There's still plenty of opportunities for further enhancement (switching out divs for box, replacing flex styles with Stacks, etc.) — I tried to get what was in front of me, but didn't get everything and yeah if it wasn't broke I didn't fix it. If anybody wants to tackle any of the remaining issues, feel free to jump on this PR (or we can close it and leave the MUI5 branch as a working branch until we have everything we want cleaned up). I won't have the luxury of vacation time to work on it for another month :P Regarding the useTheme hooks...I got rid of them where I could. There are some places where it was still necessary because a certain style cannot be achieved in sx (like breakpoints.down media queries or if we need to apply an alpha value to a theme color). I didn't use the codemod, I just scaffolded a new CLI project, added in all of the config for craco, mdx, etc. by hand and then moved over the src files and cleaned up things that were broken manually. Codemods may have saved some time, but 🤷♂️ |
…s-in-doc-it Updated icons links in doc it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joebochill Shall we cover https://github.com/brightlayer-ui/doc-it/issues/609 in this PR?
…t-mui-v5-migration Tidy up docit mui v5 migration
No, that's not directly related to MUI 5, so we will handle it separately. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Presto!
Fixes #519 and maybe others.
Changes proposed in this Pull Request:
Screenshots:
To Test: