diff --git a/superfields/src/main/java/org/vaadin/miki/superfields/collections/MapField.java b/superfields/src/main/java/org/vaadin/miki/superfields/collections/MapField.java index be3470f..c4da264 100644 --- a/superfields/src/main/java/org/vaadin/miki/superfields/collections/MapField.java +++ b/superfields/src/main/java/org/vaadin/miki/superfields/collections/MapField.java @@ -37,7 +37,7 @@ * @author miki * @since 2022-04-08 */ -@CssImport(value = "./styles/label-positions.css", themeFor = "vaadin-custom-field") +@CssImport(value = "./styles/label-positions.css", themeFor = "map-field") @Tag("map-field") @JsModule("./map-field.js") public class MapField extends CustomField> implements HasStyle, diff --git a/superfields/src/main/java/org/vaadin/miki/superfields/object/ObjectField.java b/superfields/src/main/java/org/vaadin/miki/superfields/object/ObjectField.java index be8296b..0df1d67 100644 --- a/superfields/src/main/java/org/vaadin/miki/superfields/object/ObjectField.java +++ b/superfields/src/main/java/org/vaadin/miki/superfields/object/ObjectField.java @@ -51,7 +51,7 @@ * @author miki * @since 2022-05-16 */ -@CssImport(value = "./styles/label-positions.css", themeFor = "vaadin-custom-field") +@CssImport(value = "./styles/label-positions.css", themeFor = "object-field") @Tag("object-field") @JsModule("./object-field.js") public class ObjectField extends CustomField diff --git a/superfields/src/main/java/org/vaadin/miki/superfields/text/LabelField.java b/superfields/src/main/java/org/vaadin/miki/superfields/text/LabelField.java index 1e2e601..36cee0f 100644 --- a/superfields/src/main/java/org/vaadin/miki/superfields/text/LabelField.java +++ b/superfields/src/main/java/org/vaadin/miki/superfields/text/LabelField.java @@ -24,7 +24,7 @@ * @author miki * @since 2022-04-08 */ -@CssImport(value = "./styles/label-positions.css", themeFor = "vaadin-custom-field") +@CssImport(value = "./styles/label-positions.css", themeFor = "label-field") @Tag("label-field") @JsModule("./label-field.js") public class LabelField extends CustomField implements HasStyle, WithLabelMixin>, diff --git a/superfields/src/main/java/org/vaadin/miki/superfields/variant/VariantField.java b/superfields/src/main/java/org/vaadin/miki/superfields/variant/VariantField.java index f4d1304..b95541b 100644 --- a/superfields/src/main/java/org/vaadin/miki/superfields/variant/VariantField.java +++ b/superfields/src/main/java/org/vaadin/miki/superfields/variant/VariantField.java @@ -29,7 +29,7 @@ * @author miki * @since 2022-04-11 */ -@CssImport(value = "./styles/label-positions.css", themeFor = "vaadin-custom-field") +@CssImport(value = "./styles/label-positions.css", themeFor = "variant-field") @Tag("variant-field") @JsModule("./variant-field.js") public class VariantField extends CustomField implements HasStyle, diff --git a/superfields/src/main/resources/META-INF/resources/frontend/styles/label-positions.css b/superfields/src/main/resources/META-INF/resources/frontend/styles/label-positions.css index cfada9a..dacce6f 100644 --- a/superfields/src/main/resources/META-INF/resources/frontend/styles/label-positions.css +++ b/superfields/src/main/resources/META-INF/resources/frontend/styles/label-positions.css @@ -39,7 +39,8 @@ width: 100%; } -:host([data-label-position-details~="after"]) [class|="vaadin"] [part="input-field"] { +:host([data-label-position-details~="after"]) [class|="vaadin"] [part="input-field"], +:host([data-label-position-details~="after"]) [class|="vaadin"] [part="input-fields"] { order: -1; } :host([data-label-position-details~="after"][theme~="helper-above-field"]) [class|="vaadin"] [part="helper-text"] {