Skip to content

Commit 5a40e2d

Browse files
elazzabihtdat
authored andcommitted
Fix Support Phone number input styling to match that of WooPayments (#11022)
1 parent 81750bf commit 5a40e2d

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: minor
2+
Type: fix
3+
4+
Fix margins for phone number input and add styling to match other inputs

client/settings/phone-input/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import utils from 'iti/utils';
1313

1414
interface 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 {
2728
const 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 );

client/settings/phone-input/style.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@
144144
// override intl-tel-input styles
145145
.iti {
146146
width: 100%;
147-
margin-top: $gap-large;
148147

149148
&--container {
150149
margin-top: 0;

client/settings/support-phone-input/styles.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,10 @@
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+
}

0 commit comments

Comments
 (0)