Skip to content

Commit 092ea73

Browse files
committed
inherit letter spacing so shared styles take effect
1 parent aa8e3fb commit 092ea73

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

projects/packages/forms/src/blocks/input-phone/editor.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@
1717
}
1818

1919
// these class is used to style input and textarea elements
20-
.jetpack-field__input-element {
20+
.jetpack-field__input-element:not(.jetpack-field__input-prefix .jetpack-field__input-element) {
2121
font: inherit;
2222
line-height: inherit;
2323
border: 0;
2424
color: inherit;
2525
outline: none;
2626
background-color: transparent;
2727
padding: 0;
28+
letter-spacing: inherit;
2829

2930
flex: 1;
3031
width: inherit;

projects/packages/forms/src/contact-form/css/phone-field.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@
4545
resize: none;
4646
padding: 0;
4747
min-width: unset;
48+
49+
&:not(.jetpack-field__input-prefix .jetpack-field__input-element) {
50+
letter-spacing: inherit;
51+
}
4852
}
4953

5054
.jetpack-field__input-element::before,

0 commit comments

Comments
 (0)