File tree Expand file tree Collapse file tree 3 files changed +22
-8
lines changed
ui/components/visual-picker Expand file tree Collapse file tree 3 files changed +22
-8
lines changed Original file line number Diff line number Diff line change 57
57
box-shadow : $elevation-shadow-4 ;
58
58
}
59
59
60
+ & :focus ~ label .slds-visual-picker__body > * :first-child {
61
+ text-decoration : underline ;
62
+ }
63
+
60
64
/* *
61
65
* @summary Non-selected state
62
66
* @selector .slds-is-not-selected
Original file line number Diff line number Diff line change @@ -17,6 +17,12 @@ import { UtilityIcon } from '../../icons/base/example';
17
17
// Partial(s)
18
18
/// ////////////////////////////////////////
19
19
20
+ export const Option = props => (
21
+ < span className = "slds-text-title" key = { _ . uniqueId ( ) } >
22
+ { props . label }
23
+ </ span >
24
+ ) ;
25
+
20
26
export let VisualPicker = props => {
21
27
const uniqueId = _ . uniqueId ( 'visual-picker-' ) ;
22
28
@@ -139,15 +145,15 @@ export default (
139
145
icon
140
146
sprite = "utility"
141
147
symbol = "connected_apps"
142
- label = "Connected App"
148
+ label = { < Option label = "Connected App" /> }
143
149
size = "medium"
144
150
/>
145
151
< VisualPicker
146
152
type = "radio"
147
153
icon
148
154
sprite = "utility"
149
155
symbol = "custom_apps"
150
- label = "Custom App"
156
+ label = { < Option label = "Custom App" /> }
151
157
size = "medium"
152
158
/>
153
159
</ FormElementControl >
@@ -167,7 +173,7 @@ export let states = [
167
173
icon
168
174
sprite = "utility"
169
175
symbol = "connected_apps"
170
- label = "Connected App"
176
+ label = { < Option label = "Connected App" /> }
171
177
size = "medium"
172
178
/>
173
179
< VisualPicker
@@ -176,7 +182,7 @@ export let states = [
176
182
icon
177
183
sprite = "utility"
178
184
symbol = "custom_apps"
179
- label = "Custom App"
185
+ label = { < Option label = "Custom App" /> }
180
186
size = "medium"
181
187
/>
182
188
</ FormElementControl >
@@ -198,23 +204,23 @@ export let examples = [
198
204
icon
199
205
sprite = "standard"
200
206
symbol = "account"
201
- label = "Account"
207
+ label = { < Option label = "Account" /> }
202
208
size = "medium"
203
209
/>
204
210
< VisualPicker
205
211
type = "checkbox"
206
212
icon
207
213
sprite = "standard"
208
214
symbol = "lead"
209
- label = "Lead"
215
+ label = { < Option label = "Lead" /> }
210
216
size = "medium"
211
217
/>
212
218
< VisualPicker
213
219
type = "checkbox"
214
220
icon
215
221
sprite = "standard"
216
222
symbol = "orders"
217
- label = "Orders"
223
+ label = { < Option label = "Orders" /> }
218
224
size = "medium"
219
225
/>
220
226
</ FormElementControl >
Original file line number Diff line number Diff line change 22
22
23
23
+ .slds-visual-picker_vertical {
24
24
margin-left : 0 ;
25
- margin-top : $spacing-large ;
25
+ margin-top : $spacing-medium ;
26
26
}
27
27
28
28
.slds-visual-picker__figure ,
29
29
.slds-visual-picker__body {
30
30
width : $size-large ;
31
31
}
32
+
33
+ input :focus ~ label .slds-visual-picker__text .slds-text-heading_medium {
34
+ text-decoration : underline ;
35
+ }
32
36
}
You can’t perform that action at this time.
0 commit comments