This repository was archived by the owner on Jul 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ Prop Name | Type | Description
32
32
className | String | Classes to be applied to the root element.
33
33
raised | Boolean | Enables raised variant.
34
34
unelevated | Boolean | Enables unelevated variant.
35
- stroked | Boolean | Enables stroked variant.
35
+ outlined | Boolean | Enables outlined variant.
36
36
icon | Element | Icon to render within root element.
37
37
children | String | Text to be displayed within root element.
38
38
disabled | Boolean | Disables button if true.
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export class Button extends Component {
9
9
className,
10
10
raised,
11
11
unelevated,
12
- stroked ,
12
+ outlined ,
13
13
icon,
14
14
children,
15
15
initRipple,
@@ -20,7 +20,7 @@ export class Button extends Component {
20
20
const classes = classnames ( 'mdc-button' , className , {
21
21
'mdc-button--raised' : raised ,
22
22
'mdc-button--unelevated' : unelevated ,
23
- 'mdc-button--stroked ' : stroked ,
23
+ 'mdc-button--outlined ' : outlined ,
24
24
} ) ;
25
25
26
26
return (
@@ -51,7 +51,7 @@ export class Button extends Component {
51
51
Button . propTypes = {
52
52
raised : PropTypes . bool ,
53
53
unelevated : PropTypes . bool ,
54
- stroked : PropTypes . bool ,
54
+ outlined : PropTypes . bool ,
55
55
disabled : PropTypes . bool ,
56
56
unbounded : PropTypes . bool ,
57
57
initRipple : PropTypes . func ,
@@ -63,7 +63,7 @@ Button.propTypes = {
63
63
Button . defaultProps = {
64
64
raised : false ,
65
65
unelevated : false ,
66
- stroked : false ,
66
+ outlined : false ,
67
67
disabled : false ,
68
68
unbounded : false ,
69
69
initRipple : ( ) => { } ,
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ ReactDOM.render((
29
29
< Button raised > Raised</ Button >
30
30
</ div >
31
31
< div className = 'button-container' >
32
- < Button stroked > Stroked </ Button >
32
+ < Button outlined > Outlined </ Button >
33
33
</ div >
34
34
< div className = 'button-container' >
35
35
< Button unelevated > Unelevated</ Button >
Original file line number Diff line number Diff line change 8
8
"material-icon/menu.html" : " 790b2076760612c6c91ee0f6bb42aa3603b30c2a60f302de22429c2572645640" ,
9
9
"fab/standard.html" : " c0a68de7fa657ac62622e4f541c8e1eaef7544d12afb26b3421c3b04d58effa6" ,
10
10
"card/index.html" : " fe449cbe9e766c68386704b6cbfc3f3f508fbc947c6cdec97fa1b05183d0e61d" ,
11
- "button/index.html" : " 5a31c21c642f7536a08276c9367aae19004e0eea550898d92ecd962bfc5bdad4 " ,
11
+ "button/index.html" : " 66a897d49f43d12844333b54370e7a5c441a9f5c563a8703f5e61251fdd6bde7 " ,
12
12
"material-icon/index.html" : " 20c6c6bfe5ff444b52952343661151226a8786001fdd3e66e51e80903c3a9292" ,
13
13
"line-ripple/index.html" : " 4b8eca29eb61834715ca0eeaec2c620358fa943623b5235ca02717c351f1485b" ,
14
14
"floating-label/index.html" : " 67d9b6caad3a494563e2584ac6af071bbb3b73afc3e945f8299ca720b4015256" ,
15
15
"notched-outline/index.html" : " 73394b6d7dcd94bc930dc740db8199000b94d365d7d703381ef01b3318b97d8c" ,
16
16
"text-field/icon/index.html" : " ce761ca24e2d5ca425ad1783c9e2d476b84f65232d86c4fdc0e8c3e756311c8f" ,
17
17
"text-field/helper-text/index.html" : " 722a8eb27cbde5e32fc92c70e6c107f8ef75bff1abb3914fd2ef58fd49b678bb" ,
18
18
"text-field/index.html" : " 8cac264e77fe54efcc659edeb8ef1e530963f9efbe8a26edd2e54780beafcb71"
19
- }
19
+ }
Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ test('renders a unelevated button', () => {
33
33
assert . isTrue ( wrapper . hasClass ( 'mdc-button--unelevated' ) ) ;
34
34
} ) ;
35
35
36
- test ( 'renders a stroked button' , ( ) => {
37
- const wrapper = shallow ( < Button stroked /> ) ;
38
- assert . isTrue ( wrapper . hasClass ( 'mdc-button--stroked ' ) ) ;
36
+ test ( 'renders an outlined button' , ( ) => {
37
+ const wrapper = shallow ( < Button outlined /> ) ;
38
+ assert . isTrue ( wrapper . hasClass ( 'mdc-button--outlined ' ) ) ;
39
39
} ) ;
40
40
41
41
test ( 'default initRipple function' , ( ) => {
You can’t perform that action at this time.
0 commit comments