Skip to content

Commit 4e2112f

Browse files
authored
refactor(ui5-input, ui5-textarea): enable customization of font-style (#1413)
Enable users to change the font-style of the text in the input and textarea. It's a recent requirement by the "MDK" project, that consume us.
1 parent 6710038 commit 4e2112f

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

packages/main/src/themes/Input.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
color: var(--sapField_TextColor);
1212
font-size: var(--sapFontSize);
1313
font-family: var(--sapFontFamily);
14+
font-style: normal;
1415
background-color: var(--sapField_Background);
1516
border: 1px solid var(--sapField_BorderColor);
1617
border-radius: var(--_ui5_input_wrapper_border_radius);
@@ -51,7 +52,7 @@
5152
background: transparent;
5253
color: inherit;
5354
border: none;
54-
font-style: normal;
55+
font-style: inherit;
5556
-webkit-appearance: none;
5657
-moz-appearance: textfield;
5758
line-height: normal;

packages/main/src/themes/TextArea.css

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
color: var(--sapField_TextColor);
88
font-size: var(--sapFontSize);
99
font-family: var(--sapFontFamily);
10+
font-style: normal;
1011
border-color: var(--sapField_BorderColor);
1112
border-radius: var(--_ui5_input_wrapper_border_radius);
1213
box-sizing: border-box;
@@ -57,6 +58,7 @@
5758
color: inherit;
5859
font-size: inherit;
5960
font-family: inherit;
61+
font-style: inherit;
6062
-webkit-appearance: none;
6163
-moz-appearance: textfield;
6264
overflow: auto;

packages/main/src/themes/base/Input-parameters.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
--_ui5_input_error_font_weight: normal;
88
--_ui5_input_focus_border_width: 1px;
99
--_ui5_input_error_warning_border_style: solid;
10-
--_ui5_input_error_warning_font_style: normal;
10+
--_ui5_input_error_warning_font_style: inherit;
1111
--_ui5_input_disabled_color: var(--sapContent_DisabledTextColor);
1212
--_ui5_input_disabled_font_weight: normal;
1313
--_ui5_input_disabled_border_color: var(--sapField_BorderColor);

0 commit comments

Comments
 (0)