File tree 2 files changed +9
-5
lines changed
polaris-react/src/components/TextField
2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @shopify/polaris ' : patch
3
+ ---
4
+
5
+ Fixed TextField clear bug in Safari
Original file line number Diff line number Diff line change 18
18
/* only show the clear button when focused within the textfield */
19
19
& : focus-within {
20
20
.ClearButton {
21
- display : block;
22
21
visibility : visible;
23
22
opacity : 1 ;
24
23
}
31
30
32
31
& : not (: focus-within ) {
33
32
.ClearButton {
34
- display : none;
35
33
visibility : hidden;
36
34
opacity : 0 ;
35
+ position : absolute;
36
+ right : 0 ;
37
37
}
38
38
}
39
39
474
474
/* stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY */
475
475
z-index : var (--pc-text-field-contents );
476
476
margin : 0 var (--p-space-300 ) 0 var (--p-space-100 );
477
- transition : visibility var (--p-motion-duration-200 )
478
- var (--p-motion-ease-in-out ),
479
- opacity var (--p-motion-duration-200 ) var (--p-motion-ease-in-out );
477
+ transition : visibility var (--p-motion-duration-100 ) var (--p-motion-ease-out ),
478
+ opacity var (--p-motion-duration-100 ) var (--p-motion-ease-out );
480
479
481
480
& : focus-visible : enabled {
482
481
/* stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY */
You can’t perform that action at this time.
0 commit comments