@@ -24,12 +24,20 @@ const styles = css`
24
24
.column {
25
25
display: flex;
26
26
flex-direction: column;
27
- gap: 16px ;
27
+ align-items: center ;
28
28
}
29
29
30
30
.row {
31
31
display: flex;
32
- gap: 16px;
32
+ gap: 32px;
33
+ }
34
+
35
+ p {
36
+ color: var(--md-sys-color-on-surface);
37
+ font: var(--md-sys-typescale-body-medium-weight, 400)
38
+ var(--md-sys-typescale-body-medium-size, 0.875rem) /
39
+ var(--md-sys-typescale-body-medium-line-height, 1.25rem)
40
+ var(--md-sys-typescale-body-medium-font, 'Roboto');
33
41
}
34
42
` ;
35
43
@@ -38,26 +46,34 @@ const buttons: MaterialStoryInit<StoryKnobs> = {
38
46
styles,
39
47
render ( { icon, disabled} ) {
40
48
return html `
41
- < div class ="column ">
42
- < div class ="row ">
43
- < md-icon-button aria-label ="Standard icon " ?disabled =${ disabled } >
44
- < md-icon > ${ icon } </ md-icon >
49
+ < div class ="row ">
50
+ < div class ="column ">
51
+ < p > Standard</ p >
52
+ < md-icon-button aria-label ="Open settings " ?disabled =${ disabled } >
53
+ < md-icon > ${ icon || 'settings' } </ md-icon >
45
54
</ md-icon-button >
55
+ </ div >
46
56
47
- < md-outlined-icon-button
48
- aria-label =" Outlined icon "
49
- ?disabled =${ disabled } >
50
- < md-icon > ${ icon } </ md-icon >
57
+ < div class =" column " >
58
+ < p > Outlined</ p >
59
+ < md-outlined-icon-button aria-label =" Search " ?disabled =${ disabled } >
60
+ < md-icon > ${ icon || 'search' } </ md-icon >
51
61
</ md-outlined-icon-button >
62
+ </ div >
52
63
53
- < md-filled-icon-button aria-label ="Filled icon " ?disabled =${ disabled } >
54
- < md-icon > ${ icon } </ md-icon >
64
+ < div class ="column ">
65
+ < p > Filled</ p >
66
+ < md-filled-icon-button aria-label ="Complete " ?disabled =${ disabled } >
67
+ < md-icon > ${ icon || 'done' } </ md-icon >
55
68
</ md-filled-icon-button >
69
+ </ div >
56
70
71
+ < div class ="column ">
72
+ < p > Filled tonal</ p >
57
73
< md-filled-tonal-icon-button
58
- aria-label ="Filled tonal icon "
74
+ aria-label ="Add new "
59
75
?disabled =${ disabled } >
60
- < md-icon > ${ icon } </ md-icon >
76
+ < md-icon > ${ icon || 'add' } </ md-icon >
61
77
</ md-filled-tonal-icon-button >
62
78
</ div >
63
79
</ div >
@@ -70,38 +86,54 @@ const toggles: MaterialStoryInit<StoryKnobs> = {
70
86
styles,
71
87
render ( { icon, selectedIcon, disabled} ) {
72
88
return html `
73
- < div class ="column ">
74
- < div class ="row ">
89
+ < div class ="row ">
90
+ < div class ="column ">
91
+ < p > Standard</ p >
75
92
< md-icon-button
76
- aria-label ="Standard icon "
93
+ aria-label ="Show password "
94
+ aria-label-selected ="Hide password "
77
95
toggle
78
96
?disabled =${ disabled } >
79
- < md-icon > ${ icon } </ md-icon >
80
- < md-icon slot ="selected "> ${ selectedIcon } </ md-icon >
97
+ < md-icon > ${ icon || 'visibility' } </ md-icon >
98
+ < md-icon slot ="selected ">
99
+ ${ selectedIcon || 'visibility_off' }
100
+ </ md-icon >
81
101
</ md-icon-button >
102
+ </ div >
82
103
104
+ < div class ="column ">
105
+ < p > Outlined</ p >
83
106
< md-outlined-icon-button
84
- aria-label ="Outlined icon "
107
+ aria-label ="Play "
108
+ aria-label-selected ="Pause "
85
109
toggle
86
110
?disabled =${ disabled } >
87
- < md-icon > ${ icon } </ md-icon >
88
- < md-icon slot ="selected "> ${ selectedIcon } </ md-icon >
111
+ < md-icon > ${ icon || 'play_arrow' } </ md-icon >
112
+ < md-icon slot ="selected "> ${ selectedIcon || 'pause' } </ md-icon >
89
113
</ md-outlined-icon-button >
114
+ </ div >
90
115
116
+ < div class ="column ">
117
+ < p > Filled</ p >
91
118
< md-filled-icon-button
92
- aria-label ="Filled icon "
119
+ aria-label ="Show more "
120
+ aria-label-selected ="Show less "
93
121
toggle
94
122
?disabled =${ disabled } >
95
- < md-icon > ${ icon } </ md-icon >
96
- < md-icon slot ="selected "> ${ selectedIcon } </ md-icon >
123
+ < md-icon > ${ icon || 'expand_more' } </ md-icon >
124
+ < md-icon slot ="selected "> ${ selectedIcon || 'expand_less' } </ md-icon >
97
125
</ md-filled-icon-button >
126
+ </ div >
98
127
128
+ < div class ="column ">
129
+ < p > Filled tonal</ p >
99
130
< md-filled-tonal-icon-button
100
- aria-label ="Filled tonal icon "
131
+ aria-label ="Open menu "
132
+ aria-label-selected ="Close menu "
101
133
toggle
102
134
?disabled =${ disabled } >
103
- < md-icon > ${ icon } </ md-icon >
104
- < md-icon slot ="selected "> ${ selectedIcon } </ md-icon >
135
+ < md-icon > ${ icon || 'menu' } </ md-icon >
136
+ < md-icon slot ="selected "> ${ selectedIcon || 'close' } </ md-icon >
105
137
</ md-filled-tonal-icon-button >
106
138
</ div >
107
139
</ div >
@@ -114,34 +146,44 @@ const links: MaterialStoryInit<StoryKnobs> = {
114
146
styles,
115
147
render ( { icon} ) {
116
148
return html `
117
- < div class ="column ">
118
- < div class ="row ">
149
+ < div class ="row ">
150
+ < div class ="column ">
151
+ < p > Standard</ p >
119
152
< md-icon-button
120
- aria-label ="Standard icon "
153
+ aria-label ="Go home "
121
154
href ="https://google.com "
122
155
target ="_blank ">
123
- < md-icon > ${ icon } </ md-icon >
156
+ < md-icon > ${ icon || 'home' } </ md-icon >
124
157
</ md-icon-button >
158
+ </ div >
125
159
160
+ < div class ="column ">
161
+ < p > Outlined</ p >
126
162
< md-outlined-icon-button
127
- aria-label ="Outlined icon "
163
+ aria-label ="Open new tab "
128
164
href ="https://google.com "
129
165
target ="_blank ">
130
- < md-icon > ${ icon } </ md-icon >
166
+ < md-icon > ${ icon || 'open_in_new' } </ md-icon >
131
167
</ md-outlined-icon-button >
168
+ </ div >
132
169
170
+ < div class ="column ">
171
+ < p > Filled</ p >
133
172
< md-filled-icon-button
134
- aria-label ="Filled icon "
173
+ aria-label ="Download Google "
135
174
href ="https://google.com "
136
175
target ="_blank ">
137
- < md-icon > ${ icon } </ md-icon >
176
+ < md-icon > ${ icon || 'download' } </ md-icon >
138
177
</ md-filled-icon-button >
178
+ </ div >
139
179
180
+ < div class ="column ">
181
+ < p > Filled tonal</ p >
140
182
< md-filled-tonal-icon-button
141
- aria-label ="Filled tonal icon "
183
+ aria-label ="Logout "
142
184
href ="https://google.com "
143
185
target ="_blank ">
144
- < md-icon > ${ icon } </ md-icon >
186
+ < md-icon > ${ icon || 'logout' } </ md-icon >
145
187
</ md-filled-tonal-icon-button >
146
188
</ div >
147
189
</ div >
0 commit comments