Skip to content
Snippets Groups Projects
Commit d547ebf4 authored by Chris Beer's avatar Chris Beer
Browse files

Create a new button variant for our 'button but look like regular text' style

parent 22aaddee
Branches
No related tags found
2 merge requests!19Draft: Merge video support into mui5,!18Only nudge over badge content for the WindowListButton; it needs special...
...@@ -114,7 +114,6 @@ export class SearchHit extends Component { ...@@ -114,7 +114,6 @@ export class SearchHit extends Component {
}), }),
}, },
paddingRight: 1, paddingRight: 1,
}} }}
divider divider
button={!selected} button={!selected}
......
...@@ -64,17 +64,9 @@ export class SearchPanel extends Component { ...@@ -64,17 +64,9 @@ export class SearchPanel extends Component {
/> />
{ {
fetchSearch && suggestedSearches && query === '' && suggestedSearches.map(search => ( fetchSearch && suggestedSearches && query === '' && suggestedSearches.map(search => (
<Typography component="p" key={search} variant="body1"> <Typography component="p" key={search} variant="body1" sx={{ margin: 2 }}>
<Button <Button
sx={{ variant="inlineText"
'& span': {
lineHeight: '1.5em',
},
margin: 2,
padding: 0,
textAlign: 'inherit',
textTransform: 'none',
}}
color="secondary" color="secondary"
onClick={() => fetchSearch(`${searchService.id}?q=${search}`, search)} onClick={() => fetchSearch(`${searchService.id}?q=${search}`, search)}
> >
......
...@@ -324,6 +324,20 @@ export default { ...@@ -324,6 +324,20 @@ export default {
}, },
], ],
}, },
MuiButton: {
styleOverrides: {
inlineText: {
lineHeight: '1.5em',
padding: 0,
textAlign: 'inherit',
textTransform: 'none',
},
inlineTextSecondary: ({ theme }) => ({
color: theme.palette.secondary.main,
}),
}
},
MuiButtonBase: { MuiButtonBase: {
defaultProps: { defaultProps: {
disableTouchRipple: true, disableTouchRipple: true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment