Skip to content

Commit bd340d4

Browse files
vaadin-botjouni
andauthored
fix: inherit alignment properties from host to vaadin-button-container in lumo (#11309) (#11310)
Co-authored-by: Jouni Koivuviita <jouni@vaadin.com>
1 parent d46a2e7 commit bd340d4

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

  • packages/vaadin-lumo-styles/src/components

packages/vaadin-lumo-styles/src/components/button.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939
--_lumo-button-text-color: var(--vaadin-button-text-color, var(--lumo-primary-text-color));
4040
--_lumo-button-primary-background: var(--vaadin-button-primary-background, var(--lumo-primary-color));
4141
--_lumo-button-primary-text-color: var(--vaadin-button-primary-text-color, var(--lumo-primary-contrast-color));
42+
/* Allow controlling these from the host (inherited by the inner container */
43+
align-items: center;
44+
justify-content: center;
45+
text-align: center;
4246
}
4347

4448
:host([hidden]) {
@@ -47,9 +51,9 @@
4751

4852
.vaadin-button-container {
4953
display: inline-flex;
50-
align-items: center;
51-
justify-content: center;
52-
text-align: center;
54+
align-items: inherit;
55+
justify-content: inherit;
56+
text-align: inherit;
5357
width: 100%;
5458
height: 100%;
5559
min-height: inherit;

0 commit comments

Comments
 (0)