Skip to content

Commit

Permalink
fix(ui5-time-picker): enable text spacing (#5940)
Browse files Browse the repository at this point in the history
- Text spacing is now applied when custom styles
are provided to the parent element.

Fixes: #5792
  • Loading branch information
unazko authored Oct 26, 2022
1 parent 94d1619 commit da7ae70
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/main/src/themes/StepInput.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
:host(:not([hidden])) {
display: inline-block;
width: 100%;
line-height: normal;
letter-spacing: normal;
word-spacing: normal;
}

:host {
Expand Down Expand Up @@ -150,6 +153,9 @@
position: relative;
padding: 0px 2.5rem 0px 2.4375rem;
outline: none;
line-height: inherit;
letter-spacing: inherit;
word-spacing: inherit;
}

:host .ui5-step-input-input[readonly] {
Expand All @@ -163,6 +169,9 @@

:host .ui5-step-input-root {
white-space: nowrap;
line-height: inherit;
letter-spacing: inherit;
word-spacing: inherit;
}

:host .ui5-step-input-input[text-align=left] {
Expand Down
12 changes: 12 additions & 0 deletions packages/main/src/themes/TimePicker.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

:host(:not([hidden])) {
display: inline-block;
line-height: normal;
letter-spacing: normal;
word-spacing: normal;
}

:host {
Expand All @@ -19,10 +22,19 @@
background: var(--sapField_Hover_Background);
}

.ui5-time-picker-root {
line-height: inherit;
letter-spacing: inherit;
word-spacing: inherit;
}

:host .ui5-time-picker-input {
width: 100%;
color: inherit;
background-color: inherit;
line-height: inherit;
letter-spacing: inherit;
word-spacing: inherit;
}

.ui5-time-picker-input-icon-button {
Expand Down

0 comments on commit da7ae70

Please sign in to comment.