Skip to content

Commit 97a3751

Browse files
committed
dashboard examples: unselected → deselected
1 parent 18d54a1 commit 97a3751

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

frontend/demo/component/dashboard/dashboard-announcements.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class Example extends LitElement {
5959
// This event is fired when the user starts or stops editing a widget
6060
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
6161
const title = widgetTitles[(e.detail.item as WidgetConfig).type];
62-
const selected = e.detail.value ? 'selected' : 'unselected';
62+
const selected = e.detail.value ? 'selected' : 'deselected';
6363

6464
this.announcement = `Widget ${title} ${selected}`;
6565
}
@@ -110,7 +110,7 @@ export class Example extends LitElement {
110110
render() {
111111
return html`
112112
<p>Live announcement:</p>
113-
<!--
113+
<!--
114114
Live region for screen reader announcements. Changing its text content will result
115115
in a new announcement. This element is only visible for demonstration purposes. In
116116
your application you should visually hide it using CSS, for example by using the

frontend/demo/component/dashboard/react/dashboard-announcements.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function Example() {
5353
// This event is fired when the user starts or stops editing a widget
5454
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
5555
const title = widgetTitles[(e.detail.item as WidgetConfig).type];
56-
const selected = e.detail.value ? 'selected' : 'unselected';
56+
const selected = e.detail.value ? 'selected' : 'deselected';
5757

5858
announcement.value = `Widget ${title} ${selected}`;
5959
}

src/main/java/com/vaadin/demo/component/dashboard/DashboardAnnouncements.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public DashboardAnnouncements() {
6161
// This event is fired when the user starts or stops editing a widget
6262
dashboard.addItemSelectedChangedListener(event -> {
6363
String title = ((DashboardWidget)event.getItem()).getTitle();
64-
String selected = event.isSelected() ? "selected" : "unselected";
64+
String selected = event.isSelected() ? "selected" : "deselected";
6565

6666
liveRegion.setText("Widget " + title + " " + selected);
6767
});

0 commit comments

Comments
 (0)