Skip to content

Commit

Permalink
fix firefox dragging issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tomivirkki committed Oct 3, 2024
1 parent d582de3 commit d14720b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/dashboard/src/vaadin-dashboard-section.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ class DashboardSection extends DashboardItemMixin(
/** @protected */
ready() {
super.ready();
this.role ??= 'section';
if (!this.role) {
this.role = 'section';
}
}
}

Expand Down
4 changes: 3 additions & 1 deletion packages/dashboard/src/vaadin-dashboard-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ class DashboardWidget extends DashboardItemMixin(
/** @protected */
ready() {
super.ready();
this.role ??= 'article';
if (!this.role) {
this.role = 'article';
}
}

/** @private */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,17 @@ const dashboardWidgetAndSection = css`
outline: none;
}
:host([focused])::before {
:host::before {
content: '';
display: block;
position: absolute;
inset: 0;
border-radius: var(--lumo-border-radius-l);
pointer-events: none;
margin: calc(var(--_focus-ring-spacing-offset) * -1);
}
:host([focused])::before {
outline: var(--_focus-ring-width) solid var(--_focus-ring-color);
}
Expand Down

0 comments on commit d14720b

Please sign in to comment.