Skip to content

Commit

Permalink
Fix number-field with controls right alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
samiheikki committed Jun 22, 2019
1 parent 68a9eba commit 8704b18
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions test/visual/vaadin-number-field/number-field.html
Expand Up @@ -29,5 +29,7 @@
<vaadin-number-field has-controls></vaadin-number-field>
<p>
<vaadin-number-field value="10" has-controls></vaadin-number-field>
<p>
<vaadin-number-field value="10" has-controls theme="align-right"></vaadin-number-field>
</fieldset>
</body>
2 changes: 1 addition & 1 deletion theme/lumo/vaadin-number-field-styles.html
Expand Up @@ -9,7 +9,7 @@
width: 8em;
}

:host([has-controls]) [part="value"] {
:host([has-controls]:not([theme~="align-right"])) [part="value"] {
text-align: center;
}

Expand Down

0 comments on commit 8704b18

Please sign in to comment.