11
11
< div class ="row ">
12
12
< div class ="col s12 m8 offset-m1 xl7 offset-xl1 ">
13
13
< p class ="caption "> There are main button types described in material design - the elevated button, the filled, text and floating button.</ p >
14
+ < a tabindex ="0 " class ="btn "> Standard Button</ a >
14
15
<!-- ### -->
15
16
< div id ="filled " class ="section scrollspy ">
16
- < h3 class ="header "> Filled (standard) </ h3 >
17
+ < h3 class ="header "> Filled < small class =" secondary-text " > (Standard) </ small > </ h3 >
17
18
< p >
18
19
The filled buttons communicates < b > high</ b > emphasized actions. This is the Stadard Button Design. You can add the class < u > filled</ u > to the button to provide this
19
20
style. This should be the main Actions on a Page, so be carful. A good rule of thumb is to add just one primary action per page or field of view.
20
21
</ p >
21
22
22
- < a class ="btn "> Standard Button</ a >
23
- < a class ="btn filled "> Create</ a >
24
- < a class ="btn filled icon-left "> < i class ="material-icons "> add</ i > Create </ a >
25
- < a class ="btn filled icon-right rounded waves-effect waves-light "> < i class ="material-icons "> edit</ i > Update </ a >
23
+ < div style ="display: flex; gap: 1rem ">
24
+ < a tabindex ="0 " class ="btn filled "> Create</ a >
25
+ < a tabindex ="0 " class ="btn filled icon-left "> < i class ="material-icons "> add</ i > Create </ a >
26
+ < a tabindex ="0 " class ="btn filled icon-right rounded waves-effect waves-light "> < i class ="material-icons "> edit</ i > Update </ a >
27
+ </ div >
26
28
27
29
< pre style ="padding-top: 0px ">
28
30
< span class ="copyMessage "> Copied!</ span >
29
31
< i class ="material-icons copyButton "> content_copy</ i >
30
- < code class ="language-markup copiedText ">
31
- < xmp >
32
- < a class ="btn "> Standard Button</ a >
33
- < a class ="btn filled "> Create</ a >
34
- < a class ="btn filled icon-left ">
32
+ < code class ="language-markup copiedText "> < xmp > < a class ="btn "> Standard Button</ a >
33
+ < a tabindex ="0 " class ="btn filled "> Create</ a >
34
+ < a tabindex ="0 " class ="btn filled icon-left ">
35
35
< i class ="material-icons "> add</ i > Create
36
36
</ a >
37
- < a class ="btn filled icon-right rounded waves-effect waves-light ">
37
+ < a tabindex =" 0 " class ="btn filled icon-right rounded waves-effect waves-light ">
38
38
< i class ="material-icons "> edit</ i > Update
39
- </ a >
40
- </ xmp >
41
- </ code >
42
- </ pre >
39
+ </ a > </ xmp > </ code > </ pre >
43
40
</ div >
44
41
<!-- ### -->
45
42
< div id ="filled-tonal " class ="section scrollspy ">
@@ -49,20 +46,22 @@ <h3>Tonal</h3>
49
46
additional Actions next to the primary actions.
50
47
</ p >
51
48
52
- < a class ="btn tonal "> Create</ a >
53
- < a class ="btn tonal icon-left "> < i class ="material-icons "> add</ i > Create </ a >
54
- < a class ="btn tonal icon-right waves-effect waves-light "> < i class ="material-icons "> add</ i > Create </ a >
49
+ < div style ="display: flex; gap: 1rem ">
50
+ < a tabindex ="0 " class ="btn tonal "> Create</ a >
51
+ < a tabindex ="0 " class ="btn tonal icon-left "> < i class ="material-icons "> add</ i > Create </ a >
52
+ < a tabindex ="0 " class ="btn tonal icon-right waves-effect waves-light "> < i class ="material-icons "> add</ i > Create </ a >
53
+ </ div >
55
54
56
55
< pre style ="padding-top: 0px ">
57
56
< span class ="copyMessage "> Copied!</ span >
58
57
< i class ="material-icons copyButton "> content_copy</ i >
59
58
< code class ="language-markup copiedText ">
60
59
< xmp >
61
- < a class ="btn tonal "> Create</ a >
62
- < a class ="btn tonal icon-left ">
60
+ < a tabindex =" 0 " class ="btn tonal "> Create</ a >
61
+ < a tabindex =" 0 " class ="btn tonal icon-left ">
63
62
< i class ="material-icons "> add</ i > Create
64
63
</ a >
65
- < a class ="btn tonal icon-right waves-effect waves-light ">
64
+ < a tabindex =" 0 " class ="btn tonal icon-right waves-effect waves-light ">
66
65
< i class ="material-icons "> add</ i > Create
67
66
</ a >
68
67
</ xmp > </ code >
@@ -73,20 +72,22 @@ <h3>Tonal</h3>
73
72
< h3 class ="header "> Outlined</ h3 >
74
73
< p > The outlined button communicates a < b > medium</ b > emphasized action. Just add the class outlined to the button.</ p >
75
74
76
- < a class ="btn outlined "> Create</ a >
77
- < a class ="btn outlined icon-left "> < i class ="material-icons "> add</ i > Create </ a >
78
- < a class ="btn outlined icon-right waves-effect waves-light "> < i class ="material-icons "> add</ i > Create </ a >
75
+ < div style ="display: flex; gap: 1rem ">
76
+ < a tabindex ="0 " class ="btn outlined "> Create</ a >
77
+ < a tabindex ="0 " class ="btn outlined icon-left "> < i class ="material-icons "> add</ i > Create </ a >
78
+ < a tabindex ="0 " class ="btn outlined icon-right waves-effect waves-light "> < i class ="material-icons "> add</ i > Create </ a >
79
+ </ div >
79
80
80
81
< pre style ="padding-top: 0px ">
81
82
< span class ="copyMessage "> Copied!</ span >
82
83
< i class ="material-icons copyButton "> content_copy</ i >
83
84
< code class ="language-markup copiedText ">
84
85
< xmp >
85
- < a class ="btn outlined "> Create</ a >
86
- < a class ="btn outlined icon-left ">
86
+ < a tabindex =" 0 " class ="btn outlined "> Create</ a >
87
+ < a tabindex =" 0 " class ="btn outlined icon-left ">
87
88
< i class ="material-icons "> add</ i > Create
88
89
</ a >
89
- < a class ="btn outlined icon-right waves-effect waves-light ">
90
+ < a tabindex =" 0 " class ="btn outlined icon-right waves-effect waves-light ">
90
91
< i class ="material-icons "> add</ i > Create
91
92
</ a >
92
93
</ xmp >
@@ -100,26 +101,29 @@ <h3 class="header">Elevated</h3>
100
101
The elevated button is a tonal button with a shadow. This button that signify < b > medium</ b > emphazied actions and seek to give depth to a mostly flat page. Try to
101
102
only use shadows when absolutely neccessary, to prevent shadow creep. Also keep in mind that on darker backgrounds the shadows are not really good visible.
102
103
</ p >
103
- < a class ="btn elevated "> Create</ a >
104
- < a class ="btn elevated icon-left "> < i class ="material-icons "> add</ i > Create </ a >
105
- < a class ="btn elevated icon-right "> < i class ="material-icons "> add</ i > Create </ a >
106
- < a class ="btn elevated rounded "> Create</ a >
107
- < a class ="btn elevated icon-left rounded "> < i class ="material-icons "> add</ i > Create</ a >
104
+
105
+ < div style ="display: flex; gap: 1rem ">
106
+ < a tabindex ="0 " class ="btn elevated "> Create</ a >
107
+ < a tabindex ="0 " class ="btn elevated icon-left "> < i class ="material-icons "> add</ i > Create </ a >
108
+ < a tabindex ="0 " class ="btn elevated icon-right "> < i class ="material-icons "> add</ i > Create </ a >
109
+ < a tabindex ="0 " class ="btn elevated rounded "> Create</ a >
110
+ < a tabindex ="0 " class ="btn elevated icon-left rounded "> < i class ="material-icons "> add</ i > Create</ a >
111
+ </ div >
108
112
109
113
< pre style ="padding-top: 0px ">
110
114
< span class ="copyMessage "> Copied!</ span >
111
115
< i class ="material-icons copyButton "> content_copy</ i >
112
116
< code class ="language-markup copiedText ">
113
117
< xmp >
114
- < a class ="btn elevated "> Create</ a >
115
- < a class ="btn elevated ">
118
+ < a tabindex =" 0 " class ="btn elevated "> Create</ a >
119
+ < a tabindex =" 0 " class ="btn elevated ">
116
120
< i class ="material-icons left "> add</ i > Create
117
121
</ a >
118
- < a class ="btn elevated ">
122
+ < a tabindex =" 0 " class ="btn elevated ">
119
123
< i class ="material-icons right "> add</ i > Create
120
124
</ a >
121
- < a class ="btn elevated rounded "> Create</ a >
122
- < a class ="btn elevated rounded "> < i class ="material-icons "> add</ i > Create</ a >
125
+ < a tabindex =" 0 " class ="btn elevated rounded "> Create</ a >
126
+ < a tabindex =" 0 " class ="btn elevated rounded "> < i class ="material-icons "> add</ i > Create</ a >
123
127
</ xmp > </ code >
124
128
</ pre >
125
129
</ div >
@@ -131,9 +135,11 @@ <h3 class="header">Text</h3>
131
135
modal so there are not too many overlapping shadows.
132
136
</ p >
133
137
134
- < a tabindex ="0 " class ="btn text "> Create</ a >
135
- < button class ="btn text icon-left "> < i class ="material-icons "> add</ i > Create</ button >
136
- < a tabindex ="0 " class ="btn text icon-right waves-effect "> < i class ="material-icons "> add</ i > Create </ a >
138
+ < div style ="display: flex; gap: 1rem ">
139
+ < a tabindex ="0 " class ="btn text "> Create</ a >
140
+ < button class ="btn text icon-left "> < i class ="material-icons "> add</ i > Create</ button >
141
+ < a tabindex ="0 " class ="btn text icon-right waves-effect "> < i class ="material-icons "> add</ i > Create </ a >
142
+ </ div >
137
143
138
144
< pre style ="padding-top: 0px ">
139
145
< span class ="copyMessage "> Copied!</ span >
@@ -152,6 +158,7 @@ <h3 class="header">Text</h3>
152
158
</ pre >
153
159
</ div >
154
160
<!-- ### -->
161
+
155
162
< div id ="floating " class ="section scrollspy ">
156
163
< h3 class ="header "> Floating</ h3 >
157
164
< a class ="btn-floating btn-large waves-effect waves-light ">
@@ -171,6 +178,7 @@ <h3 class="header">Floating</h3>
171
178
< h5 > Floating Action Button</ h5 >
172
179
< p > A circular material button that lifts and displays an ink reaction on press. See the documentation on < a href ="floating-action-button.html "> this page</ a > </ p >
173
180
</ div >
181
+
174
182
<!-- Helpers -->
175
183
< div id ="helpers " class ="section scrollspy ">
176
184
< h3 class ="header "> Helpers</ h3 >
@@ -243,27 +251,24 @@ <h4 class="header">Small</h4>
243
251
< h3 class ="header "> Disabled</ h3 >
244
252
< p > This style can be applied to all button types</ p >
245
253
246
- < a class ="btn-large disabled "> Button</ a >
247
- < a class ="btn disabled "> Button</ a >
248
- < a class ="btn-flat disabled "> Button</ a >
249
- < a class ="btn-floating disabled ">
250
- < i class ="material-icons "> add</ i >
251
- </ a >
254
+ < div style ="display: flex; gap: 1rem ">
255
+ < a class ="btn-large disabled "> Button</ a >
256
+ < a class ="btn disabled "> Button</ a >
257
+ < a class ="btn-flat disabled "> Button</ a >
258
+ < a class ="btn-floating disabled ">
259
+ < i class ="material-icons "> add</ i >
260
+ </ a >
261
+ </ div >
252
262
253
263
< pre style ="padding-top: 0px ">
254
264
< span class ="copyMessage "> Copied!</ span >
255
265
< i class ="material-icons copyButton "> content_copy</ i >
256
- < code class ="language-markup copiedText ">
257
- < xmp >
258
- < a class ="btn-large disabled "> Button</ a >
266
+ < code class ="language-markup copiedText "> < xmp > < a class ="btn-large disabled "> Button</ a >
259
267
< a class ="btn disabled "> Button</ a >
260
268
< a class ="btn-flat disabled "> Button</ a >
261
269
< a class ="btn-floating disabled ">
262
270
< i class ="material-icons "> add</ i >
263
- </ a >
264
- </ xmp >
265
- </ code >
266
- </ pre >
271
+ </ a > </ xmp > </ code > </ pre >
267
272
</ div >
268
273
</ div >
269
274
0 commit comments