mirror of
https://github.com/Unleash/unleash.git
synced 2025-05-26 01:17:00 +02:00
fix: add legacy button styles (#9283)
Adds the button styles that were removed from `app.css` into the legacy theme file. These change very slightly when the flag is on, and because the hardcoded `app.css` styles have been removed, we'll use the legacy file as fallback.
This commit is contained in:
parent
abae81234a
commit
43a5d59225
@ -169,7 +169,7 @@ exports[`FeedbackCESForm 1`] = `
|
||||
hidden=""
|
||||
>
|
||||
<button
|
||||
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium Mui-disabled MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-1bqn98c-MuiButtonBase-root-MuiButton-root"
|
||||
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium Mui-disabled MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-l6m2tn-MuiButtonBase-root-MuiButton-root"
|
||||
disabled=""
|
||||
tabindex="-1"
|
||||
type="submit"
|
||||
|
@ -75,7 +75,7 @@ exports[`renders an empty list correctly 1`] = `
|
||||
/>
|
||||
<button
|
||||
aria-labelledby="useId-0"
|
||||
className="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-1pzmo7x-MuiButtonBase-root-MuiButton-root"
|
||||
className="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-1xfu7h-MuiButtonBase-root-MuiButton-root"
|
||||
disabled={false}
|
||||
onBlur={[Function]}
|
||||
onClick={[Function]}
|
||||
|
@ -39,7 +39,7 @@ const theme = {
|
||||
fontWeightBold: '700',
|
||||
fontWeightMedium: '700',
|
||||
allVariants: { lineHeight: 1.4 },
|
||||
button: { lineHeight: 1.75 },
|
||||
button: { lineHeight: 1.75, fontSize: '16px' },
|
||||
h1: {
|
||||
fontSize: '1.5rem',
|
||||
lineHeight: 1.875,
|
||||
@ -597,6 +597,8 @@ export default createTheme({
|
||||
MuiButton: {
|
||||
styleOverrides: {
|
||||
root: ({ theme }) => ({
|
||||
borderRadius: '3px',
|
||||
textTransform: 'none',
|
||||
'&:not(.Mui-disabled).MuiButton-containedPrimary': {
|
||||
backgroundColor: theme.palette.background.alternative,
|
||||
'&:hover': {
|
||||
|
@ -31,7 +31,7 @@ export const theme = {
|
||||
fontWeightBold: '700',
|
||||
fontWeightMedium: '700',
|
||||
allVariants: { lineHeight: 1.4 },
|
||||
button: { lineHeight: 1.75 },
|
||||
button: { lineHeight: 1.75, fontSize: '16px' },
|
||||
h1: {
|
||||
fontSize: '1.5rem',
|
||||
lineHeight: 1.875,
|
||||
@ -325,6 +325,16 @@ export default createTheme({
|
||||
},
|
||||
},
|
||||
|
||||
// Buttons
|
||||
MuiButton: {
|
||||
styleOverrides: {
|
||||
root: ({ theme }) => ({
|
||||
borderRadius: '3px',
|
||||
textTransform: 'none',
|
||||
}),
|
||||
},
|
||||
},
|
||||
|
||||
// Links
|
||||
MuiLink: {
|
||||
styleOverrides: {
|
||||
|
Loading…
Reference in New Issue
Block a user