File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
frontend/demo/component/dashboard
src/main/java/com/vaadin/demo/component/dashboard Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ export class Example extends LitElement {
59
59
// This event is fired when the user starts or stops editing a widget
60
60
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
61
61
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 ' ;
63
63
64
64
this . announcement = `Widget ${ title } ${ selected } ` ;
65
65
}
@@ -110,7 +110,7 @@ export class Example extends LitElement {
110
110
render ( ) {
111
111
return html `
112
112
< p > Live announcement:</ p >
113
- <!--
113
+ <!--
114
114
Live region for screen reader announcements. Changing its text content will result
115
115
in a new announcement. This element is only visible for demonstration purposes. In
116
116
your application you should visually hide it using CSS, for example by using the
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ function Example() {
53
53
// This event is fired when the user starts or stops editing a widget
54
54
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
55
55
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 ' ;
57
57
58
58
announcement . value = `Widget ${ title } ${ selected } ` ;
59
59
}
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public DashboardAnnouncements() {
61
61
// This event is fired when the user starts or stops editing a widget
62
62
dashboard .addItemSelectedChangedListener (event -> {
63
63
String title = ((DashboardWidget )event .getItem ()).getTitle ();
64
- String selected = event .isSelected () ? "selected" : "unselected " ;
64
+ String selected = event .isSelected () ? "selected" : "deselected " ;
65
65
66
66
liveRegion .setText ("Widget " + title + " " + selected );
67
67
});
You can’t perform that action at this time.
0 commit comments