From b1426f561dde78d0e40f191be672546fca61d57a Mon Sep 17 00:00:00 2001 From: Carson Full Date: Tue, 19 Jul 2016 19:09:41 -0500 Subject: [PATCH] [Material UI] Changed button labels from strings to ReactNodes. (#10102) --- material-ui/material-ui-tests.tsx | 4 ++-- material-ui/material-ui.d.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/material-ui/material-ui-tests.tsx b/material-ui/material-ui-tests.tsx index d1188ac3fb..c47f82858b 100644 --- a/material-ui/material-ui-tests.tsx +++ b/material-ui/material-ui-tests.tsx @@ -680,7 +680,7 @@ const FlatButtonExampleComplex = () => ( Label before} labelPosition="before" primary={true} style={styles.button} @@ -741,7 +741,7 @@ const RaisedButtonExampleComplex = () => ( Label before} labelPosition="before" primary={true} icon={} diff --git a/material-ui/material-ui.d.ts b/material-ui/material-ui.d.ts index 984f57e987..58a36f9cf9 100644 --- a/material-ui/material-ui.d.ts +++ b/material-ui/material-ui.d.ts @@ -662,7 +662,7 @@ declare namespace __MaterialUI { hoverColor?: string; href?: string; icon?: React.ReactNode; - label?: string; + label?: React.ReactNode; labelPosition?: "before" | "after"; labelStyle?: React.CSSProperties; linkButton?: boolean; @@ -688,7 +688,7 @@ declare namespace __MaterialUI { fullWidth?: boolean; href?: string; icon?: React.ReactNode; - label?: string; + label?: React.ReactNode; labelColor?: string; labelPosition?: "before" | "after"; labelStyle?: React.CSSProperties;