Skip to content

Commit

Permalink
refactor: update dashboard resize mode icons (#8191)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomivirkki authored Nov 20, 2024
1 parent ce163d5 commit bae0a94
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions packages/dashboard/theme/lumo/vaadin-dashboard-widget-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,19 +226,18 @@ const dashboardWidget = css`
border-bottom-right-radius: 0;
}
:host(:not([dir='rtl'])) [part~='resize-shrink-width-button'],
:host([dir='rtl']) [part~='resize-grow-width-button'] {
--icon: var(--lumo-icons-angle-left);
[part~='resize-grow-height-button'],
[part~='resize-grow-width-button'] {
--icon: var(--lumo-icons-plus);
}
:host(:not([dir='rtl'])) [part~='resize-grow-width-button'],
:host([dir='rtl']) [part~='resize-shrink-width-button'] {
--icon: var(--lumo-icons-angle-right);
[part~='resize-shrink-height-button'],
[part~='resize-shrink-width-button'] {
--icon: var(--lumo-icons-minus);
}
[part~='resize-grow-height-button'],
[part~='resize-shrink-height-button'] {
--icon: var(--lumo-icons-angle-down);
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
Expand All @@ -247,10 +246,6 @@ const dashboardWidget = css`
border-top-left-radius: 0;
border-top-right-radius: 0;
}
[part~='resize-shrink-height-button'] {
--icon: var(--lumo-icons-angle-up);
}
`;

registerStyles('vaadin-dashboard-widget', [dashboardWidget, dashboardWidgetAndSection], {
Expand Down

0 comments on commit bae0a94

Please sign in to comment.