-
+
+
+
+
+
diff --git a/src/test/java/com/flowingcode/vaadin/addons/badgelist/ReadOnlyBinderDemo.java b/src/test/java/com/flowingcode/vaadin/addons/badgelist/ReadOnlyBinderDemo.java
index 8d0c4d2..13ff8ca 100644
--- a/src/test/java/com/flowingcode/vaadin/addons/badgelist/ReadOnlyBinderDemo.java
+++ b/src/test/java/com/flowingcode/vaadin/addons/badgelist/ReadOnlyBinderDemo.java
@@ -63,7 +63,7 @@ public ReadOnlyBinderDemo() {
IntStream.rangeClosed(1, 12).mapToObj(i -> "ROLE" + i).collect(Collectors.toList());
rolesComboBox.setItems(roles);
- rolesBadgeList = new BadgeList();
+ rolesBadgeList = new BadgeList("Roles");
readonlyBadgeList = new ReadOnlyHasValue>(rolesBadgeList::setBadges);
binder = new Binder<>();
@@ -81,9 +81,6 @@ public ReadOnlyBinderDemo() {
buttonsLayout.setJustifyContentMode(JustifyContentMode.END);
VerticalLayout layout = new VerticalLayout();
- Span span = new Span("Roles");
- span.addClassName("readonly-badge-list-label");
- rolesBadgeListDiv.add(span);
rolesBadgeListDiv.setWidth("450px");
rolesBadgeListDiv.add(rolesBadgeList);
layout.add(firstName, lastName, rolesComboBox, rolesBadgeListDiv);
diff --git a/src/test/resources/META-INF/frontend/styles/badge-list-demo-styles.css b/src/test/resources/META-INF/frontend/styles/badge-list-demo-styles.css
index 3474075..3feb0ee 100644
--- a/src/test/resources/META-INF/frontend/styles/badge-list-demo-styles.css
+++ b/src/test/resources/META-INF/frontend/styles/badge-list-demo-styles.css
@@ -36,9 +36,3 @@ fc-badge-list[class="styled-badges-second-example"]::part(overflow-badge), .cust
border: 1px green dashed;
border-radius: 0;
}
-
-.readonly-badge-list-label {
- color: var(--lumo-secondary-text-color);
- font-weight: 500;
- font-size: var(--lumo-font-size-s);
-}