Skip to content

Commit 1aaa7cc

Browse files
committed
feat: use both horizontal and vertical in group variants
1 parent 3527ed8 commit 1aaa7cc

File tree

2 files changed

+12
-2
lines changed
  • vaadin-checkbox-flow-parent/vaadin-checkbox-flow/src/main/java/com/vaadin/flow/component/checkbox
  • vaadin-radio-button-flow-parent/vaadin-radio-button-flow/src/main/java/com/vaadin/flow/component/radiobutton

2 files changed

+12
-2
lines changed

vaadin-checkbox-flow-parent/vaadin-checkbox-flow/src/main/java/com/vaadin/flow/component/checkbox/CheckboxGroupVariant.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,19 @@
2121
* Set of theme variants applicable for {@code vaadin-checkbox-group} component.
2222
*/
2323
public enum CheckboxGroupVariant implements ThemeVariant {
24+
/**
25+
* @deprecated Use {@link #VERTICAL} instead.
26+
*/
27+
@Deprecated(since = "25.0", forRemoval = true)
2428
LUMO_VERTICAL("vertical"),
2529
/**
2630
* @deprecated Use {@link #HELPER_ABOVE_FIELD} instead.
2731
*/
2832
@Deprecated(since = "25.0", forRemoval = true)
2933
LUMO_HELPER_ABOVE_FIELD("helper-above-field"),
30-
HELPER_ABOVE_FIELD("helper-above-field"),
31-
HORIZONTAL("horizontal");
34+
HORIZONTAL("horizontal"),
35+
VERTICAL("vertical"),
36+
HELPER_ABOVE_FIELD("helper-above-field");
3237

3338
private final String variant;
3439

vaadin-radio-button-flow-parent/vaadin-radio-button-flow/src/main/java/com/vaadin/flow/component/radiobutton/RadioGroupVariant.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,18 @@
2121
* Set of theme variants applicable for {@code vaadin-radio-group} component.
2222
*/
2323
public enum RadioGroupVariant implements ThemeVariant {
24+
/**
25+
* @deprecated Use {@link #VERTICAL} instead.
26+
*/
27+
@Deprecated(since = "25.0", forRemoval = true)
2428
LUMO_VERTICAL("vertical"),
2529
/**
2630
* @deprecated Use {@link #HELPER_ABOVE_FIELD} instead.
2731
*/
2832
@Deprecated(since = "25.0", forRemoval = true)
2933
LUMO_HELPER_ABOVE_FIELD("helper-above-field"),
3034
HORIZONTAL("horizontal"),
35+
VERTICAL("vertical"),
3136
HELPER_ABOVE_FIELD("helper-above-field");
3237

3338
private final String variant;

0 commit comments

Comments
 (0)