File tree Expand file tree Collapse file tree 4 files changed +14
-1
lines changed
Expand file tree Collapse file tree 4 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1+ Significance: minor
2+ Type: fix
3+
4+ Fix margins for phone number input and add styling to match other inputs
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import utils from 'iti/utils';
1313
1414interface PhoneNumberInputProps {
1515 value : string ;
16+ id : string ;
1617 onValidationChange : ( isValid : boolean ) => void ;
1718 onValueChange : ( value : string ) => void ;
1819 onCountryDropdownClick ?: ( ) => void ;
@@ -27,6 +28,7 @@ interface PhoneNumberInputProps {
2728const PhoneNumberInput = ( {
2829 onValueChange,
2930 value,
31+ id,
3032 onValidationChange = ( validation ) => validation ,
3133 onCountryDropdownClick,
3234 inputProps = {
@@ -207,6 +209,7 @@ const PhoneNumberInput = ( {
207209 < input
208210 type = "tel"
209211 ref = { inputRef }
212+ id = { id }
210213 value = { removeInternationalPrefix ( value ) }
211214 onBlur = { ( ) => {
212215 setFocusLost ( true ) ;
Original file line number Diff line number Diff line change 144144// override intl-tel-input styles
145145.iti {
146146 width : 100% ;
147- margin-top : $gap-large ;
148147
149148 & --container {
150149 margin-top : 0 ;
Original file line number Diff line number Diff line change 1414 border-radius : 0 ;
1515 }
1616}
17+
18+ #account-business-support-phone-input {
19+ height : 40px ;
20+ padding-right : 12px ;
21+ width : 100% ;
22+ border-radius : 0 ;
23+ }
You can’t perform that action at this time.
0 commit comments