Skip to content

Commit

Permalink
docs: add new variable doc and deprecate old one (#8636)
Browse files Browse the repository at this point in the history
* docs: add new variable doc and deprecate old one

* docs: add a mention to the new variable at the deprecation note

* docs: move description to one line to fix table format
  • Loading branch information
DiegoCardoso authored Feb 5, 2025
1 parent b1da5f9 commit d36b63b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/form-layout/src/vaadin-form-item.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ import { FormItemMixin } from './vaadin-form-item-mixin.js';
* ---|---|---
* `--vaadin-form-item-label-width` | Width of the label column when the labels are aside | `8em`
* `--vaadin-form-item-label-spacing` | Spacing between the label column and the input column when the labels are aside | `1em`
* `--vaadin-form-item-row-spacing` | Height of the spacing between the form item elements | `1em`
* `--vaadin-form-item-row-spacing` | (DEPRECATED: Use `--vaadin-form-layout-row-spacing` on `<vaadin-form-layout>` instead) Height of the spacing between the form item elements | `1em`
*
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/form-layout/src/vaadin-form-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ registerStyles('vaadin-form-item', formItemStyles, { moduleId: 'vaadin-form-item
* ---|---|---
* `--vaadin-form-item-label-width` | Width of the label column when the labels are aside | `8em`
* `--vaadin-form-item-label-spacing` | Spacing between the label column and the input column when the labels are aside | `1em`
* `--vaadin-form-item-row-spacing` | Height of the spacing between the form item elements | `1em`
* `--vaadin-form-item-row-spacing` | (DEPRECATED: Use `--vaadin-form-layout-row-spacing` on `<vaadin-form-layout>` instead) Height of the spacing between the form item elements | `1em`
*
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
*
Expand Down
1 change: 1 addition & 0 deletions packages/form-layout/src/vaadin-form-layout.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export * from './vaadin-form-layout-mixin.js';
* Custom CSS property | Description | Default
* ---|---|---
* `--vaadin-form-layout-column-spacing` | Length of the spacing between columns | `2em`
* `--vaadin-form-layout-row-spacing` | Length of the spacing between rows | `1em`
*/
declare class FormLayout extends FormLayoutMixin(ElementMixin(ThemableMixin(HTMLElement))) {}

Expand Down
1 change: 1 addition & 0 deletions packages/form-layout/src/vaadin-form-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ registerStyles('vaadin-form-layout', formLayoutStyles, { moduleId: 'vaadin-form-
* Custom CSS property | Description | Default
* ---|---|---
* `--vaadin-form-layout-column-spacing` | Length of the spacing between columns | `2em`
* `--vaadin-form-layout-row-spacing` | Length of the spacing between rows | 1em`
*
* @customElement
* @extends HTMLElement
Expand Down

0 comments on commit d36b63b

Please sign in to comment.