Skip to content

Commit

Permalink
Add CSS variables for lumo theme variants
Browse files Browse the repository at this point in the history
to enable theming inside a notification,
connects to vaadin/vaadin-notification#104
  • Loading branch information
pekam committed Apr 18, 2019
1 parent 4a5c54f commit dae0af7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions theme/lumo/vaadin-button-styles.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
font-family: var(--lumo-font-family);
font-size: var(--lumo-font-size-m);
font-weight: 500;
color: var(--lumo-primary-text-color);
background-color: var(--lumo-contrast-5pct);
color: var(--lumo-button-color, var(--lumo-primary-text-color));
background-color: var(--lumo-button-background-color, var(--lumo-contrast-5pct));
border-radius: var(--lumo-border-radius);
cursor: default;
-webkit-tap-highlight-color: transparent;
Expand Down Expand Up @@ -156,8 +156,8 @@
}

:host([theme~="primary"]) {
background-color: var(--lumo-primary-color);
color: var(--lumo-primary-contrast-color);
background-color: var(--lumo-button-primary-background-color, var(--lumo-primary-color));
color: var(--lumo-button-primary-color, var(--lumo-primary-contrast-color));
font-weight: 600;
min-width: calc(var(--lumo-button-size) * 2.5);
}
Expand Down

0 comments on commit dae0af7

Please sign in to comment.