8
8
</ p >
9
9
10
10
< h2 class ="c-heading c-heading--medium "> Basic Button</ h2 >
11
- < p class ="c-paragraph "> To make a button a Blaze button add the < code class ="c-code "> < Button > Button< /Button >
11
+ < p class ="c-paragraph "> To make a button a Blaze button add the < code class ="c-code "> < Button> Button< /Button>
12
12
</ code > </ p >
13
13
< div class ="o-grid o-grid--small-full ">
14
14
< div class ="o-grid__cell o-grid__cell--width-50 u-letter-box--small ">
@@ -23,8 +23,8 @@ <h2 class="c-heading c-heading--medium">Basic Button</h2>
23
23
24
24
< h2 id ="colours " class ="c-heading c-heading--medium "> Button Colours</ h2 >
25
25
< p class ="c-paragraph ">
26
- There are four button colour modifiers < code class ="c-code "> .c-button-- primary</ code > , < code class ="c-code "> .c-button-- secondary</ code > ,
27
- < code class ="c-code "> .c-button-- success</ code > and < code class ="c-code "> .c-button-- error</ code > .
26
+ There are four button colour modifiers < code class ="c-code "> primary</ code > , < code class ="c-code "> secondary</ code > ,
27
+ < code class ="c-code "> success</ code > and < code class ="c-code "> error</ code > .
28
28
</ p >
29
29
< div class ="o-grid o-grid--small-full ">
30
30
< div class ="o-grid__cell o-grid__cell--width-50 u-letter-box--small ">
@@ -43,7 +43,7 @@ <h2 id="colours" class="c-heading c-heading--medium">Button Colours</h2>
43
43
44
44
< h2 id ="groups " class ="c-heading c-heading--medium "> Button Groups</ h2 >
45
45
< p class ="c-paragraph ">
46
- To group related buttons together you can use the < code class ="c-code "> .c-button-group </ code > wrapping element. This will bunch the buttons
46
+ To group related buttons together you can use the < code class ="c-code "> <ButtonGroup > <ButtonGroup > </ code > wrapping element. This will bunch the buttons
47
47
together and remove the spacing between them.
48
48
</ p >
49
49
< div class ="o-grid o-grid--small-full ">
@@ -58,9 +58,8 @@ <h2 id="groups" class="c-heading c-heading--medium">Button Groups</h2>
58
58
<Button secondary> Button</Button>
59
59
</ButtonGroup> </ code > </ pre > </ div >
60
60
</ div >
61
-
62
61
< p class ="c-paragraph ">
63
- Adding the < code class ="c-code "> .c-button-group-- rounded</ code > modifier will make the first and last buttons rounded.
62
+ Use the < code class ="c-code "> <ButtonGroup rounded> </ code > to make the first and last buttons rounded.
64
63
</ p >
65
64
< div class ="o-grid o-grid--small-full ">
66
65
< div class ="o-grid__cell o-grid__cell--width-50 u-letter-box--small ">
@@ -69,12 +68,12 @@ <h2 id="groups" class="c-heading c-heading--medium">Button Groups</h2>
69
68
< button type ="button " class ="c-button c-button--secondary "> Button</ button >
70
69
</ span >
71
70
</ div >
72
- < div class ="o-grid__cell o-grid__cell--width-50 u-letter-box--small "> < pre class ="c-pre html "> < code class ="c-code c-code--multiline "> <span class="c-button-group c-button-group-- rounded" >
73
- <button class="c-button c-button-- primary" > Button</button >
74
- <button class="c-button c-button-- secondary" > Button</button >
75
- </span > </ code > </ pre > </ div >
71
+ < div class ="o-grid__cell o-grid__cell--width-50 u-letter-box--small "> < pre class ="c-pre html "> < code class ="c-code c-code--multiline "> <ButtonGroup rounded>
72
+ <Button primary> Button</Button >
73
+ <Button secondary> Button</Button >
74
+ </ButtonGroup > </ code > </ pre > </ div >
76
75
</ div >
77
-
76
+
78
77
< h2 id ="sizes " class ="c-heading c-heading--medium "> Button Sizes</ h2 >
79
78
< div class ="o-grid o-grid--small-full ">
80
79
< div class ="o-grid__cell o-grid__cell--width-50 u-letter-box--small ">
@@ -84,11 +83,13 @@ <h2 id="sizes" class="c-heading c-heading--medium">Button Sizes</h2>
84
83
< button type ="button " class ="c-button c-button--large "> Button</ button >
85
84
< button type ="button " class ="c-button c-button--super "> Button</ button >
86
85
</ div >
87
- < div class ="o-grid__cell o-grid__cell--width-50 u-letter-box--small "> < pre class ="c-pre html "> < code class ="c-code c-code--multiline "> <button class="c-button c-button--xsmall"> Button</button>
88
- <button class="c-button c-button--small"> Button</button>
89
- <button class="c-button c-button--medium"> Button</button>
90
- <button class="c-button c-button--large"> Button</button>
91
- <button class="c-button c-button--super"> Button</button> </ code > </ pre > </ div >
86
+ < div class ="o-grid__cell o-grid__cell--width-50 u-letter-box--small "> < pre class ="c-pre html "> < code class ="c-code c-code--multiline "> <Button> Button</Button>
87
+ <Button size="xsmall"> Button</Button>
88
+ <Button size="small"> Button</Button>
89
+ <Button size="medium"> Button</Button>
90
+ <Button size="large"> Button</Button>
91
+ <Button size="super"> Button</Button>
92
+ </ code > </ pre > </ div >
92
93
</ div >
93
94
94
95
< h2 id ="full-width " class ="c-heading c-heading--medium "> Full Width Buttons</ h2 >
@@ -100,11 +101,12 @@ <h2 id="full-width" class="c-heading c-heading--medium">Full Width Buttons</h2>
100
101
< button type ="button " class ="c-button c-button--block c-button--large "> Button</ button >
101
102
< button type ="button " class ="c-button c-button--block c-button--super "> Button</ button >
102
103
</ div >
103
- < div class ="o-grid__cell o-grid__cell--width-50 u-letter-box--small "> < pre class ="c-pre html "> < code class ="c-code c-code--multiline "> <button class="c-button c-button--block c-button--xsmall"> Button</button>
104
- <button class="c-button c-button--block c-button--small"> Button</button>
105
- <button class="c-button c-button--block c-button--medium"> Button</button>
106
- <button class="c-button c-button--block c-button--large"> Button</button>
107
- <button class="c-button c-button--block c-button--super"> Button</button> </ code > </ pre > </ div >
104
+ < div class ="o-grid__cell o-grid__cell--width-50 u-letter-box--small "> < pre class ="c-pre html "> < code class ="c-code c-code--multiline "> <Button block> Button</Button>
105
+ <Button block size="xsmall"> Button</Button>
106
+ <Button block size="small"> Button</Button>
107
+ <Button block size="medium"> Button</Button>
108
+ <Button block size="large"> Button</Button>
109
+ <Button block size="super"> Button</Button> </ code > </ pre > </ div >
108
110
</ div >
109
111
110
112
< h2 id ="ghost " class ="c-heading c-heading--medium "> Ghost Buttons</ h2 >
@@ -116,11 +118,12 @@ <h2 id="ghost" class="c-heading c-heading--medium">Ghost Buttons</h2>
116
118
< button type ="button " class ="c-button c-button--ghost c-button--large "> Button</ button >
117
119
< button type ="button " class ="c-button c-button--ghost c-button--super "> Button</ button >
118
120
</ div >
119
- < div class ="o-grid__cell o-grid__cell--width-50 u-letter-box--small "> < pre class ="c-pre html "> < code class ="c-code c-code--multiline "> <button class="c-button c-button--ghost c-button--xsmall"> Button</button>
120
- <button class="c-button c-button--ghost c-button--small"> Button</button>
121
- <button class="c-button c-button--ghost c-button--medium"> Button</button>
122
- <button class="c-button c-button--ghost c-button--large"> Button</button>
123
- <button class="c-button c-button--ghost c-button--super"> Button</button> </ code > </ pre > </ div >
121
+ < div class ="o-grid__cell o-grid__cell--width-50 u-letter-box--small "> < pre class ="c-pre html "> < code class ="c-code c-code--multiline "> <Button ghost> Button</Button>
122
+ <Button ghost size="xsmall"> Button</Button>
123
+ <Button ghost size="small"> Button</Button>
124
+ <Button ghost size="medium"> Button</Button>
125
+ <Button ghost size="large"> Button</Button>
126
+ <Button ghost size="super"> Button</Button> </ code > </ pre > </ div >
124
127
</ div >
125
128
126
129
< h2 id ="ghost-colours " class ="c-heading c-heading--medium "> Ghost Colours</ h2 >
@@ -132,11 +135,11 @@ <h2 id="ghost-colours" class="c-heading c-heading--medium">Ghost Colours</h2>
132
135
< button type ="button " class ="c-button c-button--ghost-success c-button--large "> Button</ button >
133
136
< button type ="button " class ="c-button c-button--ghost-error c-button--super "> Button</ button >
134
137
</ div >
135
- < div class ="o-grid__cell o-grid__cell--width-50 u-letter-box--small "> < pre class ="c-pre html "> < code class ="c-code c-code--multiline "> <button class="c-button c-button-- ghost c-button--xsmall" > Button</button >
136
- <button class="c-button c-button-- ghost- primary c-button--small" > Button</button >
137
- <button class="c-button c-button-- ghost- secondary c-button--medium" > Button</button >
138
- <button class="c-button c-button-- ghost- success c-button--large" > Button</button >
139
- <button class="c-button c-button-- ghost- error c-button--super" > Button</button > </ code > </ pre > </ div >
138
+ < div class ="o-grid__cell o-grid__cell--width-50 u-letter-box--small "> < pre class ="c-pre html "> < code class ="c-code c-code--multiline "> <Button ghost> Button</Button >
139
+ <Button ghost primary size="xsmall" > Button</Button >
140
+ <Button ghost secondary size="small" > Button</Button >
141
+ <Button ghost success size="medium" > Button</Button >
142
+ <Button ghost error size="large" > Button</Button > </ code > </ pre > </ div >
140
143
</ div >
141
144
142
145
< h2 id ="rounded " class ="c-heading c-heading--medium "> Rounded Buttons</ h2 >
@@ -148,10 +151,10 @@ <h2 id="rounded" class="c-heading c-heading--medium">Rounded Buttons</h2>
148
151
< button type ="button " class ="c-button c-button--rounded c-button--ghost-success c-button--large "> Button</ button >
149
152
< button type ="button " class ="c-button c-button--rounded c-button--ghost-error c-button--super "> Button</ button >
150
153
</ div >
151
- < div class ="o-grid__cell o-grid__cell--width-50 u-letter-box--small "> < pre class ="c-pre html "> < code class ="c-code c-code--multiline "> <button class="c-button c-button-- rounded c-button-- ghost c-button--xsmall" > Button</button >
152
- <button class="c-button c-button-- rounded c-button-- ghost- primary c-button--small" > Button</button >
153
- <button class="c-button c-button-- rounded c-button-- ghost- secondary c-button--medium" > Button</button >
154
- <button class="c-button c-button-- rounded c-button-- ghost- success c-button--large" > Button</button >
155
- <button class="c-button c-button-- rounded c-button-- ghost- error c-button--super" > Button</button > </ code > </ pre > </ div >
154
+ < div class ="o-grid__cell o-grid__cell--width-50 u-letter-box--small "> < pre class ="c-pre html "> < code class ="c-code c-code--multiline "> <Button rounded ghost> Button</Button >
155
+ <Button rounded ghost primary size="xsmall" > Button</Button >
156
+ <Button rounded ghost secondary size="small" > Button</Button >
157
+ <Button rounded ghost success size="medium" > Button</Button >
158
+ <Button rounded ghost error size="large" > Button</Button > </ code > </ pre > </ div >
156
159
</ div >
157
160
</ div >
0 commit comments