Skip to content

Commit

Permalink
docs: deprecate form-item label-position attribute (#8603)
Browse files Browse the repository at this point in the history
* docs: add deprecation note in label-position documentation

* apply review suggestion

* improve note description
  • Loading branch information
DiegoCardoso authored Jan 31, 2025
1 parent d064484 commit 9b85a95
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/form-layout/src/vaadin-form-item.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ import { FormItemMixin } from './vaadin-form-item-mixin.js';
* because the `label-position` attribute is triggered automatically by the parent
* `<vaadin-form-layout>`, depending on its width and responsive behavior.
*
* **Deprecation note:** The `label-position` attribute is deprecated since 24.7 and
* will be removed in Vaadin 25, when a new approach for setting the label position
* will be introduced.
*
* ### Input Width
*
* By default, `<vaadin-form-item>` does not manipulate the width of the slotted
Expand All @@ -66,6 +70,10 @@ import { FormItemMixin } from './vaadin-form-item-mixin.js';
* }
* ```
*
* **Deprecation note:** The `label-position` attribute is deprecated since 24.7 and
* will be removed in Vaadin 25, when a new approach to styling the form-item
* based on the label position will be introduced.
*
* The following shadow DOM parts are available for styling:
*
* Part name | Description
Expand Down
8 changes: 8 additions & 0 deletions packages/form-layout/src/vaadin-form-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ registerStyles('vaadin-form-item', formItemStyles, { moduleId: 'vaadin-form-item
* because the `label-position` attribute is triggered automatically by the parent
* `<vaadin-form-layout>`, depending on its width and responsive behavior.
*
* **Deprecation note:** The `label-position` attribute is deprecated since 24.7 and
* will be removed in Vaadin 25, when a new approach for setting the label position
* will be introduced.
*
* ### Input Width
*
* By default, `<vaadin-form-item>` does not manipulate the width of the slotted
Expand All @@ -71,6 +75,10 @@ registerStyles('vaadin-form-item', formItemStyles, { moduleId: 'vaadin-form-item
* }
* ```
*
* **Deprecation note:** The `label-position` attribute is deprecated since 24.7 and
* will be removed in Vaadin 25, when a new approach to styling the form-item
* based on the label position will be introduced.
*
* The following shadow DOM parts are available for styling:
*
* Part name | Description
Expand Down

0 comments on commit 9b85a95

Please sign in to comment.