Skip to content

Commit

Permalink
fix: set input value font weight property on input container (#8141)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Nov 18, 2024
1 parent ad7b6d8 commit b2d5af6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ registerStyles(
:host {
background: var(--_background);
padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
font-weight: 500;
font-weight: var(--vaadin-input-field-value-font-weight, 500);
line-height: 1;
position: relative;
cursor: text;
Expand Down
1 change: 0 additions & 1 deletion packages/vaadin-lumo-styles/mixins/input-field-shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const inputField = css`
--lumo-text-field-size: var(--lumo-size-m);
color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
font-weight: var(--vaadin-input-field-value-font-weight, 400);
font-family: var(--lumo-font-family);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-lumo-styles/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const globals = css`
--vaadin-input-field-readonly-border: 1px dashed var(--lumo-contrast-30pct);
--vaadin-input-field-value-color: var(--lumo-body-text-color);
--vaadin-input-field-value-font-size: var(--lumo-font-size-m);
--vaadin-input-field-value-font-weight: 400;
--vaadin-input-field-value-font-weight: 500;
}
`;

Expand Down

0 comments on commit b2d5af6

Please sign in to comment.