Skip to content

Commit 9b85a95

Browse files
authored
docs: deprecate form-item label-position attribute (#8603)
* docs: add deprecation note in label-position documentation * apply review suggestion * improve note description
1 parent d064484 commit 9b85a95

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

packages/form-layout/src/vaadin-form-item.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ import { FormItemMixin } from './vaadin-form-item-mixin.js';
4343
* because the `label-position` attribute is triggered automatically by the parent
4444
* `<vaadin-form-layout>`, depending on its width and responsive behavior.
4545
*
46+
* **Deprecation note:** The `label-position` attribute is deprecated since 24.7 and
47+
* will be removed in Vaadin 25, when a new approach for setting the label position
48+
* will be introduced.
49+
*
4650
* ### Input Width
4751
*
4852
* By default, `<vaadin-form-item>` does not manipulate the width of the slotted
@@ -66,6 +70,10 @@ import { FormItemMixin } from './vaadin-form-item-mixin.js';
6670
* }
6771
* ```
6872
*
73+
* **Deprecation note:** The `label-position` attribute is deprecated since 24.7 and
74+
* will be removed in Vaadin 25, when a new approach to styling the form-item
75+
* based on the label position will be introduced.
76+
*
6977
* The following shadow DOM parts are available for styling:
7078
*
7179
* Part name | Description

packages/form-layout/src/vaadin-form-item.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ registerStyles('vaadin-form-item', formItemStyles, { moduleId: 'vaadin-form-item
4848
* because the `label-position` attribute is triggered automatically by the parent
4949
* `<vaadin-form-layout>`, depending on its width and responsive behavior.
5050
*
51+
* **Deprecation note:** The `label-position` attribute is deprecated since 24.7 and
52+
* will be removed in Vaadin 25, when a new approach for setting the label position
53+
* will be introduced.
54+
*
5155
* ### Input Width
5256
*
5357
* By default, `<vaadin-form-item>` does not manipulate the width of the slotted
@@ -71,6 +75,10 @@ registerStyles('vaadin-form-item', formItemStyles, { moduleId: 'vaadin-form-item
7175
* }
7276
* ```
7377
*
78+
* **Deprecation note:** The `label-position` attribute is deprecated since 24.7 and
79+
* will be removed in Vaadin 25, when a new approach to styling the form-item
80+
* based on the label position will be introduced.
81+
*
7482
* The following shadow DOM parts are available for styling:
7583
*
7684
* Part name | Description

0 commit comments

Comments
 (0)