diff --git a/demo/checkbox-a11y-demos.html b/demo/checkbox-a11y-demos.html
deleted file mode 100644
index 7c0fed8..0000000
--- a/demo/checkbox-a11y-demos.html
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
- Accessible Checkbox
- You can wrap any content inside the <vaadin-checkbox>
element – you don’t need to wrap it with an extra <label>
element.
- The content acts as the accessible label for the checkbox. The user can click on the label to toggle the checkbox, and screen readers will announce the text content when the checkbox is focused.
- You can focus the checkbox using the keyboard and activate it with the Space key. Notice how the visual active style is also triggered, giving keyboard users clear visual feedback that the checkbox was toggled.
-
-
- Option
-
-
-
-
-
-
diff --git a/demo/checkbox-basic-demos.html b/demo/checkbox-basic-demos.html
index a15824b..8febb7f 100644
--- a/demo/checkbox-basic-demos.html
+++ b/demo/checkbox-basic-demos.html
@@ -5,47 +5,142 @@
display: block;
}
-
-
Basic Checkbox
-
+ Basic usage
+
- I agree with Terms & Conditions
+ Option
- Custom Label
-
+ Basic usage with checkbox group
+
-
-
- Notifications
-
- Enable desktop notifications
-
+
+ Option one
+ Option two
+ Option three
+
- Disabled
-
+ Disabled state
+
-
- Option two
- Description for this option
-
+
+ Option one
+ Option two
+ Option three
+
+
+
+ Option one
+ Option two
+ Option three
+
+
+
+
- Option two
+ Object list
+
+
+
+
+
+
- Indeterminate
+ Value change event
+
+
+
+ Option one
+ Option two
+ Option three
+
+ Selected value:
+
-
-
+
+
+
+
+
+
-
+ customElements.define(CheckboxBasicDemos.is, CheckboxBasicDemos);
+
+
diff --git a/demo/checkbox-group-demos.html b/demo/checkbox-group-demos.html
deleted file mode 100644
index 93e2fec..0000000
--- a/demo/checkbox-group-demos.html
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
- Checkbox Group
-
-
-
- English
- Français
- Deutsch
-
- Selected value:
-
-
-
-
- Checkbox Group Disabled
-
-
-
- 1
- 2
- 3
- 4
-
-
-
-
- Checkbox Group with Iron Form with same names
-
-
-
-
-
-
-
-
-
-
- Checkbox Group with Iron Form with different names
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/demo/checkbox-group-validation-demos.html b/demo/checkbox-group-validation-demos.html
deleted file mode 100644
index 863b8cb..0000000
--- a/demo/checkbox-group-validation-demos.html
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-
-
- Checkbox Group with validation message
-
-
-
- English
- Français
- Deutsch
-
- Validate
-
-
-
-
- Checkbox Group with Iron Form validation
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/demo/checkbox-indeterminate-demos.html b/demo/checkbox-indeterminate-demos.html
deleted file mode 100644
index 007728a..0000000
--- a/demo/checkbox-indeterminate-demos.html
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
-
- Indeterminate Checkbox
- An indeterminate checkbox is neither checked nor unchecked. A typical use case is a “Select All” checkbox indicating that some, but not all, items are selected.
-
-
- Select All
- Option one
- Option two
-
-
-
-
-
-
-
diff --git a/demo/checkbox-presentation-demos.html b/demo/checkbox-presentation-demos.html
new file mode 100644
index 0000000..09fded0
--- /dev/null
+++ b/demo/checkbox-presentation-demos.html
@@ -0,0 +1,68 @@
+
+
+
+
+ Customizing checkbox label
+
+
+
+
+
+ Gabriella
+
+
+
+ Rudi
+
+
+
+ Hamsa
+
+
+
+ Jacob
+
+
+
+
+
+ Multi-line label
+
+
+
+
+ Option one
+ Description
+
+
+
+ Option two
+ Description
+
+
+
+ Option three
+ Description
+
+
+
+
+
+
+
+
diff --git a/demo/checkbox-styling-demos.html b/demo/checkbox-styling-demos.html
new file mode 100644
index 0000000..dcdc196
--- /dev/null
+++ b/demo/checkbox-styling-demos.html
@@ -0,0 +1,54 @@
+
+
+
+ Customizing font
+
+
+
+
+ Option one
+ Option two
+ Option three
+
+
+
+
+ Customizing icon color
+
+
+
+
+
+
+
+
+ Option one
+ Option two
+ Option three
+
+
+
+
+
+
+
diff --git a/demo/checkbox-theme-variants-demos.html b/demo/checkbox-theme-variants-demos.html
new file mode 100644
index 0000000..ef8313b
--- /dev/null
+++ b/demo/checkbox-theme-variants-demos.html
@@ -0,0 +1,36 @@
+
+
+
+ Orientation
+
+
+ Horizontal
+
+ Option one
+ Option two
+ Option three
+
+
+ Vertical
+
+ Option one
+ Option two
+ Option three
+
+
+
+
+
+
+
diff --git a/demo/checkbox-validation-demos.html b/demo/checkbox-validation-demos.html
new file mode 100644
index 0000000..97a025c
--- /dev/null
+++ b/demo/checkbox-validation-demos.html
@@ -0,0 +1,39 @@
+
+
+
+
+ Required
+
+
+
+ Option one
+ Option two
+ Option three
+
+ Submit
+
+
+
+
+
+
+
diff --git a/demo/demos.json b/demo/demos.json
index fc0bfe8..52e2e80 100644
--- a/demo/demos.json
+++ b/demo/demos.json
@@ -9,48 +9,48 @@
"title": "Vaadin Checkbox Basics",
"description": "",
"image": ""
- }
+ }
}
,
{
- "name": "Indeterminate State",
- "url": "checkbox-indeterminate-demos",
- "src": "checkbox-indeterminate-demos.html",
+ "name": "Validation",
+ "url": "checkbox-validation-demos",
+ "src": "checkbox-validation-demos.html",
"meta": {
- "title": "Vaadin Checkbox Indeterminate State",
+ "title": "Vaadin Checkbox Validations",
"description": "",
"image": ""
- }
+ }
}
,
{
- "name": "Accessibility",
- "url": "checkbox-accessibility-demos",
- "src": "checkbox-a11y-demos.html",
+ "name": "Presentation",
+ "url": "checkbox-presentation-demos",
+ "src": "checkbox-presentation-demos.html",
"meta": {
- "title": "Vaadin Checkbox Accessibility",
+ "title": "Vaadin Checkbox Presentations",
"description": "",
"image": ""
- }
+ }
}
,
{
- "name": "Checkbox Group",
- "url": "checkbox-group-demos",
- "src": "checkbox-group-demos.html",
+ "name": "Theme Variants",
+ "url": "checkbox-theme-variants-demos",
+ "src": "checkbox-theme-variants-demos.html",
"meta": {
- "title": "vaadin-checkbox-group Examples",
+ "title": "vaadin-checkbox Theme Variants",
"description": "",
"image": ""
}
}
,
{
- "name": "Checkbox Group Validation",
- "url": "checkbox-group-validation-demos",
- "src": "checkbox-group-validation-demos.html",
+ "name": "Styling",
+ "url": "checkbox-styling-demos",
+ "src": "checkbox-styling-demos.html",
"meta": {
- "title": "vaadin-checkbox-group Validation Examples",
+ "title": "vaadin-checkbox-group Styling Examples",
"description": "",
"image": ""
}
diff --git a/demo/index.html b/demo/index.html
index 34eefed..7dee16c 100644
--- a/demo/index.html
+++ b/demo/index.html
@@ -9,16 +9,12 @@
-
-
-
-
@@ -26,5 +22,16 @@
+
+
+
+
+
+
+