File tree Expand file tree Collapse file tree 2 files changed +28
-12
lines changed
packages/core/fields/association Expand file tree Collapse file tree 2 files changed +28
-12
lines changed Original file line number Diff line number Diff line change @@ -255,19 +255,19 @@ class AssociationField extends Component {
255
255
onChange = { this . handleSearchChange }
256
256
/>
257
257
258
+ {
259
+ isLoading
260
+ ? < span className = "cf-association__spinner spinner is-active" > </ span >
261
+ : ''
262
+ }
263
+
258
264
< span className = "cf-association__counter" >
259
265
{ sprintf (
260
266
__ ( 'Showing %1$d of %2$d results' , 'carbon-fields-ui' ) ,
261
267
Number ( options . length ) ,
262
268
Number ( totalOptionsCount )
263
269
) }
264
270
</ span >
265
-
266
- {
267
- isLoading
268
- ? < span className = "cf-association__spinner spinner is-active" > </ span >
269
- : ''
270
- }
271
271
</ div >
272
272
273
273
< div className = "cf-association__cols" >
@@ -494,7 +494,7 @@ const applyWithState = withState( {
494
494
totalOptionsCount : 0 ,
495
495
queryTerm : '' ,
496
496
page : 1 ,
497
- isLoading : true
497
+ isLoading : false
498
498
} ) ;
499
499
500
500
const applyWithEffects = withEffects ( aperture , { handler } ) ;
Original file line number Diff line number Diff line change 9
9
justify-content : space-between ;
10
10
align-items : center ;
11
11
flex-direction : row ;
12
+ border-color : $wp-color-gray-light-500 ;
13
+ border-style : solid ;
14
+ border-width : 1px 1px 0 ;
15
+ box-shadow : inset 0 1px 2px rgba ( 0 , 0 , 0 , 0.07 );
12
16
13
17
.cf-search-input {
14
18
flex : 1 1 auto ;
15
19
}
16
20
17
21
.cf-search-input__inner {
18
- border-bottom : 0 ;
22
+ border : 0 ;
23
+ box-shadow : none ;
24
+
25
+ & :focus {
26
+ border-color : none ;
27
+ box-shadow : none ;
28
+ outline : none ;
29
+ }
30
+ }
31
+
32
+ & :focus-within {
33
+ border-color : #5b9dd9 ;
34
+ box-shadow : 0 0 2px rgba ( 30 , 140 , 190 , 0.8 );
35
+ outline : 2px solid transparent ;
19
36
}
20
37
}
21
38
22
39
.cf-association__counter {
23
40
font-size : 12px ;
24
41
color : $wp-color-dark-gray ;
25
42
pointer-events : none ;
26
- margin-right : 25 px ;
27
- margin-left : 10 px ;
43
+ margin-right : 5 px ;
44
+ margin-left : 5 px ;
28
45
}
29
46
30
47
.cf-association__spinner {
31
48
float : none ;
32
- position : absolute ;
33
- right : 0 ;
34
49
margin : 0 ;
50
+ margin-left : 5px ;
35
51
}
36
52
37
53
.cf-association__cols {
You can’t perform that action at this time.
0 commit comments