File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ const StyledButton = styled.button`
35
35
background-color: ${ prop ( 'buttonDisabledColorBackground' ) } ;
36
36
cursor: not-allowed;
37
37
}
38
+
39
+ > *:not(:last-child) {
40
+ margin-right: ${ remSize ( 8 ) } ;
41
+ }
38
42
}
39
43
` ;
40
44
@@ -58,6 +62,7 @@ const Button = ({
58
62
Button . defaultProps = {
59
63
disabled : false ,
60
64
href : null ,
65
+ label : null ,
61
66
to : null ,
62
67
type : 'button' ,
63
68
} ;
@@ -79,7 +84,7 @@ Button.propTypes = {
79
84
/*
80
85
* An ARIA Label used for accessibility
81
86
*/
82
- label : PropTypes . string . isRequired ,
87
+ label : PropTypes . string ,
83
88
/**
84
89
* Specifying a to URL will use a react-router Link
85
90
*/
Original file line number Diff line number Diff line change @@ -34,3 +34,13 @@ export const AnchorButton = () => (
34
34
export const ReactRouterLink = ( ) => (
35
35
< Button to = "./somewhere" label = "submit" > Actually a Link</ Button >
36
36
) ;
37
+
38
+ export const InternalElementMargin = ( ) => (
39
+ < Button >
40
+ < span > Internal</ span >
41
+ < span > elements</ span >
42
+ < span > have</ span >
43
+ < span > right</ span >
44
+ < span > margins</ span >
45
+ </ Button >
46
+ ) ;
You can’t perform that action at this time.
0 commit comments