Skip to content

Fix ReportViewer report-item treeitem css after mui v5 migration#262

Merged
EstherDarkish merged 3 commits into
mainfrom
fixreportcss
Jun 7, 2023
Merged

Fix ReportViewer report-item treeitem css after mui v5 migration#262
EstherDarkish merged 3 commits into
mainfrom
fixreportcss

Conversation

@jonenst

@jonenst jonenst commented May 23, 2023

Copy link
Copy Markdown
Contributor

in mui/material-ui#21514 pseudo classes were moved from root to content, so we no longer need nested selectors and rules need to go on content directly use Mui-focused instead of :focus

also restore muiv4 treeitem label color rule to get a different color right after a click on an item. It was also removed in treeitem in mui/material-ui#21514 Note: in v5 primary.main was changed from indigo to blue in mui/material-ui#26555) but let's go with the new primary colors
Note2: fade renamed to alpha

After a quick look, we didn' customize TreeViewFinder which also uses TreeView/TreeItem
so it shouldn't need the same fixing as ReportViewer.

in mui/material-ui#21514 pseudo classes were moved
from root to content, so we no longer need nested selectors and rules need to go on content directly
use Mui-focused instead of :focus

also restore muiv4 treeitem label color rule to get a different color right after a click on an
item. It was also removed in treeitem in mui/material-ui#21514
Note: in v5 primary.main was changed from indigo to blue in mui/material-ui#26555) but let's
go with the new primary colors
Note2: fade renamed to alpha
@EstherDarkish
EstherDarkish self-requested a review June 7, 2023 08:04
@sBouzols
sBouzols self-requested a review June 7, 2023 08:29

@sBouzols sBouzols left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review OK
Test OK
Some style to adapt, will see in another PR

@EstherDarkish
EstherDarkish merged commit c331d05 into main Jun 7, 2023
@EstherDarkish
EstherDarkish deleted the fixreportcss branch June 7, 2023 12:25
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.

3 participants