Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: deprecate form-item label-position attribute #8603

Merged
merged 3 commits into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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