mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-28 17:55:15 +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=""
|
hidden=""
|
||||||
>
|
>
|
||||||
<button
|
<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=""
|
disabled=""
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
type="submit"
|
type="submit"
|
||||||
|
@ -75,7 +75,7 @@ exports[`renders an empty list correctly 1`] = `
|
|||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
aria-labelledby="useId-0"
|
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}
|
disabled={false}
|
||||||
onBlur={[Function]}
|
onBlur={[Function]}
|
||||||
onClick={[Function]}
|
onClick={[Function]}
|
||||||
|
@ -39,7 +39,7 @@ const theme = {
|
|||||||
fontWeightBold: '700',
|
fontWeightBold: '700',
|
||||||
fontWeightMedium: '700',
|
fontWeightMedium: '700',
|
||||||
allVariants: { lineHeight: 1.4 },
|
allVariants: { lineHeight: 1.4 },
|
||||||
button: { lineHeight: 1.75 },
|
button: { lineHeight: 1.75, fontSize: '16px' },
|
||||||
h1: {
|
h1: {
|
||||||
fontSize: '1.5rem',
|
fontSize: '1.5rem',
|
||||||
lineHeight: 1.875,
|
lineHeight: 1.875,
|
||||||
@ -597,6 +597,8 @@ export default createTheme({
|
|||||||
MuiButton: {
|
MuiButton: {
|
||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
root: ({ theme }) => ({
|
root: ({ theme }) => ({
|
||||||
|
borderRadius: '3px',
|
||||||
|
textTransform: 'none',
|
||||||
'&:not(.Mui-disabled).MuiButton-containedPrimary': {
|
'&:not(.Mui-disabled).MuiButton-containedPrimary': {
|
||||||
backgroundColor: theme.palette.background.alternative,
|
backgroundColor: theme.palette.background.alternative,
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
|
@ -31,7 +31,7 @@ export const theme = {
|
|||||||
fontWeightBold: '700',
|
fontWeightBold: '700',
|
||||||
fontWeightMedium: '700',
|
fontWeightMedium: '700',
|
||||||
allVariants: { lineHeight: 1.4 },
|
allVariants: { lineHeight: 1.4 },
|
||||||
button: { lineHeight: 1.75 },
|
button: { lineHeight: 1.75, fontSize: '16px' },
|
||||||
h1: {
|
h1: {
|
||||||
fontSize: '1.5rem',
|
fontSize: '1.5rem',
|
||||||
lineHeight: 1.875,
|
lineHeight: 1.875,
|
||||||
@ -325,6 +325,16 @@ export default createTheme({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Buttons
|
||||||
|
MuiButton: {
|
||||||
|
styleOverrides: {
|
||||||
|
root: ({ theme }) => ({
|
||||||
|
borderRadius: '3px',
|
||||||
|
textTransform: 'none',
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
// Links
|
// Links
|
||||||
MuiLink: {
|
MuiLink: {
|
||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
|
Loading…
Reference in New Issue
Block a user