File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
polaris-react/src/components/TextField Expand file tree Collapse file tree 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 1818 /* only show the clear button when focused within the textfield */
1919 & : focus-within {
2020 .ClearButton {
21- display : block;
2221 visibility : visible;
2322 opacity : 1 ;
2423 }
3130
3231 & : not (: focus-within ) {
3332 .ClearButton {
34- display : none;
3533 visibility : hidden;
3634 opacity : 0 ;
35+ position : absolute;
36+ right : 0 ;
3737 }
3838 }
3939
474474 /* stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY */
475475 z-index : var (--pc-text-field-contents );
476476 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 );
480479
481480 & : focus-visible : enabled {
482481 /* stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY */
You can’t perform that action at this time.
0 commit comments