-
Notifications
You must be signed in to change notification settings - Fork 87
Dashboard style update #8962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Dashboard style update #8962
Conversation
|
||
:host::before { | ||
content: ''; | ||
display: block; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit, but this is not required, as absolute/fixed positioned elements become block containers automatically.
display: block; |
* `--vaadin-dashboard-item-rowspan` | rowspan of the widget | ||
* Custom Property | Description | ||
* --------------------------------------------|---------------------- | ||
* `--vaadin-dashboard-item-colspan` | colspan of the widget |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we align the naming for all the properties to maybe use --vaadin-dashboard-item-xyz
?
We should probably add some visual tests for the themes. |
* `--vaadin-dashboard-widget-shadow` | widget shadow (non edit mode) | ||
* `--vaadin-dashboard-widget-editable-shadow` | widget edit mode shadow | ||
* `--vaadin-dashboard-widget-selected-shadow` | selected widget shadow | ||
* `--vaadin-dashboard-widget-padding` | padding around widget content |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also add the new properties to the TS file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added them.
} | ||
|
||
[part='title'] { | ||
flex: 1; | ||
color: var(--lumo-header-text-color); | ||
margin: 0; | ||
white-space: nowrap; | ||
white-space: var(--vaadin-dashboard-widget-title-wrap, wrap); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be missing from the property list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this property.
Added some tests. Can you check the baseline images @rolfsmeds ? |
|
Description
Fixes #8961
Fixes #8706
Type of change
Checklist
Additional for
Feature
type of change