Skip to content

Commit fd3f278

Browse files
committed
chore: use title to describe the widget focus button
1 parent 110163b commit fd3f278

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ export const DashboardItemMixin = (superClass) =>
114114
__renderFocusButton(i18nSelectTitleForEditingProperty) {
115115
return html`<button
116116
aria-label=${this.__i18n[i18nSelectTitleForEditingProperty]}
117+
aria-describedby="title"
117118
id="focus-button"
118119
draggable="true"
119120
class="drag-handle"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class DashboardSection extends DashboardItemMixin(ControllerMixin(ElementMixin(P
141141
<div id="focustrap">
142142
<header>
143143
${this.__renderDragHandle()}
144-
<slot name="title" @slotchange="${this.__onTitleSlotChange}"></slot>
144+
<slot name="title" id="title" @slotchange="${this.__onTitleSlotChange}"></slot>
145145
${this.__renderRemoveButton()}
146146
</header>
147147
</div>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class DashboardWidget extends DashboardItemMixin(ControllerMixin(ElementMixin(Po
146146
<div id="focustrap">
147147
<header>
148148
${this.__renderDragHandle()}
149-
<slot name="title" @slotchange="${this.__onTitleSlotChange}"></slot>
149+
<slot name="title" id="title" @slotchange="${this.__onTitleSlotChange}"></slot>
150150
<slot name="header"></slot>
151151
${this.__renderRemoveButton()}
152152
</header>

0 commit comments

Comments
 (0)