Skip to content

Commit

Permalink
[docs] Use minimum variant
Browse files Browse the repository at this point in the history
  • Loading branch information
m4theushw committed Mar 24, 2020
1 parent 820c615 commit d2196fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions docs/src/pages/components/tree-view/GmailTreeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ const useTreeItemStyles = makeStyles((theme) => ({
backgroundColor: `var(--tree-view-bg-color, ${theme.palette.grey[400]})`,
color: 'var(--tree-view-color)',
},
'&:focus > $content $label, &:hover > $content $label, &$selected > $content $label': {
backgroundColor: 'transparent',
},
},
content: {
color: theme.palette.text.secondary,
Expand Down Expand Up @@ -93,6 +90,7 @@ function StyledTreeItem(props) {
group: classes.group,
label: classes.label,
}}
variant="minimum"
{...other}
/>
);
Expand Down
4 changes: 1 addition & 3 deletions docs/src/pages/components/tree-view/GmailTreeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ const useTreeItemStyles = makeStyles((theme: Theme) =>
backgroundColor: `var(--tree-view-bg-color, ${theme.palette.grey[400]})`,
color: 'var(--tree-view-color)',
},
'&:focus > $content $label, &:hover > $content $label, &$selected > $content $label': {
backgroundColor: 'transparent',
},
},
content: {
color: theme.palette.text.secondary,
Expand Down Expand Up @@ -110,6 +107,7 @@ function StyledTreeItem(props: StyledTreeItemProps) {
group: classes.group,
label: classes.label,
}}
variant="minimum"
{...other}
/>
);
Expand Down
1 change: 1 addition & 0 deletions docs/src/pages/customization/default-theme/DefaultTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ function ObjectEntry(props) {
classes={{ root: classes.treeItem, content: classes.treeItemContent }}
nodeId={nodeId}
label={<ObjectEntryLabel objectKey={objectKey} objectValue={objectValue} />}
variant="minimum"
>
{children}
</TreeItem>
Expand Down

0 comments on commit d2196fd

Please sign in to comment.