Skip to content

Commit b2cc698

Browse files
authored
refactor: rename vaadin-dashboard-widget-wrapper (#7697)
1 parent a8e267c commit b2cc698

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎packages/dashboard/src/vaadin-dashboard-section.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class DashboardSection extends ControllerMixin(ElementMixin(PolylitMixin(LitElem
5353
grid-column: var(--_vaadin-dashboard-item-column);
5454
}
5555
56-
::slotted(vaadin-dashboard-cell) {
56+
::slotted(vaadin-dashboard-widget-wrapper) {
5757
display: contents;
5858
}
5959

‎packages/dashboard/src/vaadin-dashboard.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Dashboard extends DashboardLayoutMixin(ElementMixin(ThemableMixin(PolylitM
3939
return [
4040
super.styles,
4141
css`
42-
::slotted(vaadin-dashboard-cell) {
42+
::slotted(vaadin-dashboard-widget-wrapper) {
4343
display: contents;
4444
}
4545
`,
@@ -88,7 +88,7 @@ class Dashboard extends DashboardLayoutMixin(ElementMixin(ThemableMixin(PolylitM
8888
__itemsOrRendererChanged(items, renderer) {
8989
render(this.__renderItemCells(items || []), this);
9090

91-
this.querySelectorAll('vaadin-dashboard-cell').forEach((cell) => {
91+
this.querySelectorAll('vaadin-dashboard-widget-wrapper').forEach((cell) => {
9292
if (renderer) {
9393
renderer(cell, this, { item: cell.__item });
9494
} else {
@@ -110,10 +110,10 @@ class Dashboard extends DashboardLayoutMixin(ElementMixin(ThemableMixin(PolylitM
110110
</vaadin-dashboard-section>`;
111111
}
112112

113-
return html`<vaadin-dashboard-cell
113+
return html`<vaadin-dashboard-widget-wrapper
114114
.__item="${item}"
115115
style="--vaadin-dashboard-item-colspan: ${item.colspan};"
116-
></vaadin-dashboard-cell>`;
116+
></vaadin-dashboard-widget-wrapper>`;
117117
});
118118
}
119119
}

0 commit comments

Comments
 (0)