Skip to content

Commit

Permalink
fix(List, Menu): [juno-core] remove not need class
Browse files Browse the repository at this point in the history
  • Loading branch information
ZouYouShun committed Sep 12, 2024
1 parent 103eb41 commit 4b4a8b9
Show file tree
Hide file tree
Showing 21 changed files with 6 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,6 @@ exports[`Storyshots 🚀 Cleanup Components/Cards/Card Card Examples 1`] = `
color: #121212;
}
.c21.RcListItem-focusVisible,
.c21.Mui-focusVisible {
background-color: unset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ exports[`Storyshots 🚀 Cleanup Components/DnD DnD 1`] = `
color: #121212;
}
.c0.RcListItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ exports[`Storyshots 🚀 Cleanup Components/DnD/Dnd Examples/Multiple list Multi
color: #121212;
}
.c1.RcListItem-focusVisible,
.c1.Mui-focusVisible {
background-color: unset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ exports[`Storyshots 🚀 Cleanup Components/DnD/Dnd Examples/Multiple list/Multi
color: #121212;
}
.c2.RcListItem-focusVisible,
.c2.Mui-focusVisible {
background-color: unset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ exports[`Storyshots 🚀 Cleanup Components/Lists/List List 1`] = `
color: #121212;
}
.c0.RcListItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ exports[`Storyshots 🚀 Cleanup Components/Lists/List Examples List With Contro
color: #121212;
}
.c0.RcListItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -557,7 +556,6 @@ exports[`Storyshots 🚀 Cleanup Components/Lists/List Examples Simple List 1`]
color: #121212;
}
.c0.RcListItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Array [
color: #121212;
}
.c0.RcListItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -167,7 +166,6 @@ Array [
color: #121212;
}
.c0.RcListItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -321,7 +319,6 @@ Array [
color: #121212;
}
.c0.RcListItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -476,7 +473,6 @@ Array [
background-color: rgba(102,102,102,0.05);
}
.c0.RcListItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -631,7 +627,6 @@ Array [
background-color: rgba(60,153,73,0.05);
}
.c0.RcListItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -786,7 +781,6 @@ Array [
background-color: rgba(255,136,0,0.05);
}
.c0.RcListItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,6 @@ exports[`Storyshots 🚀 Cleanup Components/Lists/ListItem Examples Multiple-Lin
color: #121212;
}
.c0.RcListItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -1816,7 +1815,6 @@ exports[`Storyshots 🚀 Cleanup Components/Lists/ListItem Examples Single-Line
color: #121212;
}
.c1.RcListItem-focusVisible,
.c1.Mui-focusVisible {
background-color: unset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,11 @@ export const sharedListItemStyle: RcThemedStyled<
background-color: ${setAlpha(baseColor, 0.05)};
`};
&.${
// mui focus visible have issue in old version, we use the focus-visible polyfill class to do that
// that for menuItem, because in current version of menuItem that not support focused classes
// TODO: that can be remove after upgrade to V5
mainClasses.focusVisible
},
&.Mui-focusVisible {
${
// mui focus visible have issue in old version, we use the focus-visible polyfill class to do that
''
}
&.Mui-focusVisible {
background-color: unset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ exports[`Storyshots 🚀 Cleanup Components/Lists/ListItemAvatar ListItemAvatar
color: #121212;
}
.c0.RcListItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ exports[`Storyshots 🚀 Cleanup Components/Lists/ListItemIcon ListItemIcon 1`]
color: #121212;
}
.c0.RcListItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ exports[`Storyshots 🚀 Cleanup Components/Lists/ListItemSecondaryAction ListIt
color: #121212;
}
.c0.RcListItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ exports[`Storyshots 🚀 Cleanup Components/Lists/ListItemText ListItemText 1`]
color: #121212;
}
.c0.RcListItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ exports[`Storyshots 🚀 Cleanup Components/Lists/ListSubheader ListSubheader 1`
color: #121212;
}
.c1.RcListItem-focusVisible,
.c1.Mui-focusVisible {
background-color: unset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ Array [
color: #121212;
}
.c1.RcMenuItem-focusVisible,
.c1.Mui-focusVisible {
background-color: unset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ Array [
color: #121212;
}
.c0.RcMenuItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -207,7 +206,6 @@ Array [
color: #121212;
}
.c0.RcMenuItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -363,7 +361,6 @@ Array [
color: #121212;
}
.c0.RcMenuItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -520,7 +517,6 @@ Array [
background-color: rgba(102,102,102,0.05);
}
.c0.RcMenuItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -676,7 +672,6 @@ Array [
color: #121212;
}
.c0.RcMenuItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -833,7 +828,6 @@ Array [
background-color: rgba(60,153,73,0.05);
}
.c0.RcMenuItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -990,7 +984,6 @@ Array [
background-color: rgba(255,136,0,0.05);
}
.c0.RcMenuItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ Array [
color: #121212;
}
.c0.RcMenuItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -301,7 +300,6 @@ Array [
color: #121212;
}
.c0.RcMenuItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -627,7 +625,6 @@ Array [
color: #121212;
}
.c0.RcMenuItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -855,7 +852,6 @@ Array [
color: #121212;
}
.c0.RcMenuItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -1147,7 +1143,6 @@ Array [
color: #121212;
}
.c0.RcMenuItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -1346,7 +1341,6 @@ Array [
color: #121212;
}
.c0.RcMenuItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -1545,7 +1539,6 @@ Array [
color: #121212;
}
.c0.RcMenuItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -1852,7 +1845,6 @@ Array [
color: #121212;
}
.c0.RcMenuItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -2089,7 +2081,6 @@ Array [
color: #121212;
}
.c0.RcMenuItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -2380,7 +2371,6 @@ Array [
color: #121212;
}
.c0.RcMenuItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -2690,7 +2680,6 @@ Array [
color: #121212;
}
.c0.RcMenuItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -2881,7 +2870,6 @@ Array [
color: #121212;
}
.c0.RcMenuItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -3206,7 +3194,6 @@ Array [
color: #121212;
}
.c0.RcMenuItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -3599,7 +3586,6 @@ Array [
color: #121212;
}
.c0.RcMenuItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -3873,7 +3859,6 @@ exports[`Storyshots 🚀 Cleanup Components/Menu/MenuItem/MenuItem Examples Seco
color: #121212;
}
.c0.RcMenuItem-focusVisible,
.c0.Mui-focusVisible {
background-color: unset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ exports[`Storyshots 🚀 Cleanup Components/Menu/MenuList MenuList 1`] = `
color: #121212;
}
.c1.RcMenuItem-focusVisible,
.c1.Mui-focusVisible {
background-color: unset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ Array [
color: #121212;
}
.c1.RcMenuItem-focusVisible,
.c1.Mui-focusVisible {
background-color: unset;
}
Expand Down Expand Up @@ -358,7 +357,6 @@ Array [
color: #121212;
}
.c1.RcMenuItem-focusVisible,
.c1.Mui-focusVisible {
background-color: unset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ exports[`Storyshots 🚀 Cleanup Components/Menu/SubMenu SubMenu With MenuList 1
color: #121212;
}
.c1.RcMenuItem-focusVisible,
.c1.Mui-focusVisible {
background-color: unset;
}
Expand Down
Loading

0 comments on commit 4b4a8b9

Please sign in to comment.