Skip to content

Instantly share code, notes, and snippets.

@oliviertassinari
Created January 4, 2021 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oliviertassinari/60614c8c37d4ba10adc2a3b1aba1277e to your computer and use it in GitHub Desktop.
Save oliviertassinari/60614c8c37d4ba10adc2a3b1aba1277e to your computer and use it in GitHub Desktop.
diff --git a/docs/src/modules/branding/BrandingRoot.tsx b/docs/src/modules/branding/BrandingRoot.tsx
index 7c6f95e5cf..6156f8adf2 100644
--- a/docs/src/modules/branding/BrandingRoot.tsx
+++ b/docs/src/modules/branding/BrandingRoot.tsx
@@ -178,15 +178,6 @@ theme = createMuiTheme(theme, {
  components: {
    MuiButton: {
      styleOverrides: {
-        sizeSmall: {
-          padding: '8px 16px',
-          fontSize: 14,
-        },
-        sizeLarge: {
-          padding: '14px 22px',
-          boxShadow: '0 2px 3px rgba(0, 30, 60, 0.08)',
-          fontSize: 18,
-        },
       },
       variants: [
+        {
+          props: { size: 'small' },
+          style: {
+            padding: '8px 16px',
+            fontSize: 14,
+          },
+        },
+        {
+          props: { size: 'large' },
+          style: {
+            padding: '14px 22px',
+            boxShadow: '0 2px 3px rgba(0, 30, 60, 0.08)',
+            fontSize: 18,
+          },
+        },
       ],
     },
   },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment