File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed
projects/packages/forms/src Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 955
955
.jetpack-field__input ,
956
956
.jetpack-field__textarea ,
957
957
.jetpack-field-dropdown__toggle {
958
- padding-top : 1.4em ;
958
+ padding-top : max ( var ( --jetpack--contact-form--input-padding-top , 0 ), 1.4em ) ;
959
959
padding-left : var (--jetpack--contact-form--animated-left-offset );
960
960
}
961
961
Original file line number Diff line number Diff line change 100
100
.is-style-animated .jetpack-contact-form .jetpack-field.jetpack-field-phone ,
101
101
.is-style-animated .jetpack-contact-form .jetpack-field.jetpack-field-telephone {
102
102
103
+ .jetpack-field__input {
104
+ padding-top : max (var (--jetpack--contact-form--input-padding-top , 0 ), 1.4em );
105
+ }
106
+
103
107
& :not (.has-placeholder ):not (.is-selected ),
104
108
& :not (.has-placeholder ):not (.has-child-selected ) {
105
109
120
124
.is-style-outlined .jetpack-contact-form .jetpack-field.jetpack-field-phone ,
121
125
.is-style-outlined .jetpack-contact-form .jetpack-field.jetpack-field-telephone {
122
126
127
+ .jetpack-field__input {
128
+
129
+ & .is-selected {
130
+ box-shadow : unset ;
131
+ }
132
+ }
133
+
123
134
& :not (.has-placeholder ):not (.is-selected ),
124
135
& :not (.has-placeholder ):not (.has-child-selected ) {
125
136
Original file line number Diff line number Diff line change 74
74
.is-style-animated & {
75
75
76
76
.jetpack-field__input-phone-wrapper {
77
- padding-top : 1.4em ;
77
+ padding-top : max ( var ( --jetpack--contact-form--input-padding-top , 0 ), 1.4em ) ;
78
78
padding-left : var (--jetpack--contact-form--animated-left-offset );
79
79
padding-right : var (--jetpack--contact-form--animated-right-offset );
80
80
81
+ & :has (.jetpack-field__input-element :focus ) {
82
+ outline : unset ;
83
+ }
84
+
81
85
& :not (:has (* :focus , * :active )) {
82
86
83
87
.jetpack-field__input-prefix :not (:has (~ .has-placeholder ),:has (~ .has-value )) {
103
107
104
108
.jetpack-field__input-phone-wrapper {
105
109
110
+ & :has (.jetpack-field__input-element :focus ) {
111
+ outline : unset ;
112
+ }
113
+
106
114
& :not (:has (* :focus , * :active )) {
107
115
108
116
// notched label is game of superpositions with z-index,
You can’t perform that action at this time.
0 commit comments