Skip to content

Commit 8e86e64

Browse files
authored
refactor!: remove deprecated Material theme variants (#7495)
1 parent 52f59e6 commit 8e86e64

File tree

26 files changed

+20
-250
lines changed

26 files changed

+20
-250
lines changed

vaadin-button-flow-parent/vaadin-button-flow/src/main/java/com/vaadin/flow/component/button/ButtonVariant.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,7 @@ public enum ButtonVariant implements ThemeVariant {
3030
LUMO_WARNING("warning"),
3131
LUMO_ERROR("error"),
3232
LUMO_CONTRAST("contrast"),
33-
LUMO_ICON("icon"),
34-
/**
35-
* @deprecated Since 24.7, the Material theme is deprecated and will be
36-
* removed in Vaadin 25.
37-
*/
38-
@Deprecated
39-
MATERIAL_CONTAINED("contained"),
40-
/**
41-
* @deprecated Since 24.7, the Material theme is deprecated and will be
42-
* removed in Vaadin 25.
43-
*/
44-
@Deprecated
45-
MATERIAL_OUTLINED("outlined");
33+
LUMO_ICON("icon");
4634

4735
private final String variant;
4836

vaadin-card-flow-parent/vaadin-card-flow/src/main/java/com/vaadin/flow/component/card/CardVariant.java

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -25,37 +25,7 @@ public enum CardVariant implements ThemeVariant {
2525
LUMO_OUTLINED("outlined"),
2626
LUMO_HORIZONTAL("horizontal"),
2727
LUMO_STRETCH_MEDIA("stretch-media"),
28-
LUMO_COVER_MEDIA("cover-media"),
29-
/**
30-
* @deprecated Since 24.7, the Material theme is deprecated and will be
31-
* removed in Vaadin 25.
32-
*/
33-
@Deprecated
34-
MATERIAL_ELEVATED("elevated"),
35-
/**
36-
* @deprecated Since 24.7, the Material theme is deprecated and will be
37-
* removed in Vaadin 25.
38-
*/
39-
@Deprecated
40-
MATERIAL_OUTLINED("outlined"),
41-
/**
42-
* @deprecated Since 24.7, the Material theme is deprecated and will be
43-
* removed in Vaadin 25.
44-
*/
45-
@Deprecated
46-
MATERIAL_HORIZONTAL("horizontal"),
47-
/**
48-
* @deprecated Since 24.7, the Material theme is deprecated and will be
49-
* removed in Vaadin 25.
50-
*/
51-
@Deprecated
52-
MATERIAL_STRETCH_MEDIA("stretch-media"),
53-
/**
54-
* @deprecated Since 24.7, the Material theme is deprecated and will be
55-
* removed in Vaadin 25.
56-
*/
57-
@Deprecated
58-
MATERIAL_COVER_MEDIA("cover-media");
28+
LUMO_COVER_MEDIA("cover-media");
5929

6030
private final String variant;
6131

vaadin-charts-flow-parent/vaadin-charts-flow/src/main/java/com/vaadin/flow/component/charts/ChartVariant.java

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,7 @@
1414
public enum ChartVariant {
1515
LUMO_GRADIENT("gradient"),
1616
LUMO_MONOTONE("monotone"),
17-
LUMO_CLASSIC("classic"),
18-
/**
19-
* @deprecated Since 24.7, the Material theme is deprecated and will be
20-
* removed in Vaadin 25.
21-
*/
22-
@Deprecated
23-
MATERIAL_GRADIENT("gradient"),
24-
/**
25-
* @deprecated Since 24.7, the Material theme is deprecated and will be
26-
* removed in Vaadin 25.
27-
*/
28-
@Deprecated
29-
MATERIAL_MONOTONE("monotone"),
30-
/**
31-
* @deprecated Since 24.7, the Material theme is deprecated and will be
32-
* removed in Vaadin 25.
33-
*/
34-
@Deprecated
35-
MATERIAL_CLASSIC("classic");
17+
LUMO_CLASSIC("classic");
3618

3719
private final String variant;
3820

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,7 @@
2121
* Set of theme variants applicable for {@code vaadin-checkbox-group} component.
2222
*/
2323
public enum CheckboxGroupVariant implements ThemeVariant {
24-
LUMO_VERTICAL("vertical"),
25-
LUMO_HELPER_ABOVE_FIELD("helper-above-field"),
26-
/**
27-
* @deprecated Since 24.7, the Material theme is deprecated and will be
28-
* removed in Vaadin 25.
29-
*/
30-
@Deprecated
31-
MATERIAL_VERTICAL("vertical");
24+
LUMO_VERTICAL("vertical"), LUMO_HELPER_ABOVE_FIELD("helper-above-field");
3225

3326
private final String variant;
3427

vaadin-combo-box-flow-parent/vaadin-combo-box-flow/src/main/java/com/vaadin/flow/component/combobox/ComboBoxVariant.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,7 @@ public enum ComboBoxVariant implements ThemeVariant {
2525
LUMO_ALIGN_LEFT("align-left"),
2626
LUMO_ALIGN_CENTER("align-center"),
2727
LUMO_ALIGN_RIGHT("align-right"),
28-
LUMO_HELPER_ABOVE_FIELD("helper-above-field"),
29-
/**
30-
* @deprecated Since 24.7, the Material theme is deprecated and will be
31-
* removed in Vaadin 25.
32-
*/
33-
@Deprecated
34-
MATERIAL_ALWAYS_FLOAT_LABEL("always-float-label");
28+
LUMO_HELPER_ABOVE_FIELD("helper-above-field");
3529

3630
private final String variant;
3731

vaadin-combo-box-flow-parent/vaadin-combo-box-flow/src/main/java/com/vaadin/flow/component/combobox/MultiSelectComboBoxVariant.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,7 @@ public enum MultiSelectComboBoxVariant implements ThemeVariant {
2626
LUMO_ALIGN_LEFT("align-left"),
2727
LUMO_ALIGN_CENTER("align-center"),
2828
LUMO_ALIGN_RIGHT("align-right"),
29-
LUMO_HELPER_ABOVE_FIELD("helper-above-field"),
30-
/**
31-
* @deprecated Since 24.7, the Material theme is deprecated and will be
32-
* removed in Vaadin 25.
33-
*/
34-
@Deprecated
35-
MATERIAL_ALWAYS_FLOAT_LABEL("always-float-label");
29+
LUMO_HELPER_ABOVE_FIELD("helper-above-field");
3630

3731
private final String variant;
3832

vaadin-date-picker-flow-parent/vaadin-date-picker-flow/src/main/java/com/vaadin/flow/component/datepicker/DatePickerVariant.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,7 @@ public enum DatePickerVariant implements ThemeVariant {
2525
LUMO_ALIGN_LEFT("align-left"),
2626
LUMO_ALIGN_CENTER("align-center"),
2727
LUMO_ALIGN_RIGHT("align-right"),
28-
LUMO_HELPER_ABOVE_FIELD("helper-above-field"),
29-
/**
30-
* @deprecated Since 24.7, the Material theme is deprecated and will be
31-
* removed in Vaadin 25.
32-
*/
33-
@Deprecated
34-
MATERIAL_ALWAYS_FLOAT_LABEL("always-float-label");
28+
LUMO_HELPER_ABOVE_FIELD("helper-above-field");
3529

3630
private final String variant;
3731

vaadin-date-picker-flow-parent/vaadin-date-picker-flow/src/test/java/com/vaadin/flow/component/datepicker/DatePickerVariantTest.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,6 @@ public void addLumoHelperAboveField_themeAttributeUpdated() {
6767
assertThemeAttribute("helper-above-field");
6868
}
6969

70-
@Test
71-
public void addMaterialAlwaysFloatLabel_themeAttributeUpdated() {
72-
assertThemeAttribute(null);
73-
datePicker.addThemeVariants(
74-
DatePickerVariant.MATERIAL_ALWAYS_FLOAT_LABEL);
75-
assertThemeAttribute("always-float-label");
76-
}
77-
7870
@Test
7971
public void addAndRemoveMultipleVariants_themeAttributeUpdated() {
8072
assertThemeAttribute(null);

vaadin-date-time-picker-flow-parent/vaadin-date-time-picker-flow/src/main/java/com/vaadin/flow/component/datetimepicker/DateTimePickerVariant.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,7 @@ public enum DateTimePickerVariant implements ThemeVariant {
2626
LUMO_ALIGN_LEFT("align-left"),
2727
LUMO_ALIGN_CENTER("align-center"),
2828
LUMO_ALIGN_RIGHT("align-right"),
29-
LUMO_HELPER_ABOVE_FIELD("helper-above-field"),
30-
/**
31-
* @deprecated Since 24.7, the Material theme is deprecated and will be
32-
* removed in Vaadin 25.
33-
*/
34-
@Deprecated
35-
MATERIAL_ALWAYS_FLOAT_LABEL("always-float-label");
29+
LUMO_HELPER_ABOVE_FIELD("helper-above-field");
3630

3731
private final String variant;
3832

vaadin-date-time-picker-flow-parent/vaadin-date-time-picker-flow/src/test/java/com/vaadin/flow/component/datetimepicker/DateTimePickerVariantTest.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,6 @@ public void addLumoHelperAboveField_themeAttributeUpdated() {
7070
assertThemeAttribute("helper-above-field");
7171
}
7272

73-
@Test
74-
public void addMaterialAlwaysFloatLabel_themeAttributeUpdated() {
75-
assertThemeAttribute(null);
76-
dateTimePicker.addThemeVariants(
77-
DateTimePickerVariant.MATERIAL_ALWAYS_FLOAT_LABEL);
78-
assertThemeAttribute("always-float-label");
79-
}
80-
8173
@Test
8274
public void addAndRemoveMultipleVariants_themeAttributeUpdated() {
8375
assertThemeAttribute(null);

0 commit comments

Comments
 (0)