Skip to content

Commit 4bf789b

Browse files
docs: add custom-field base style properties to JSDoc (#10743) (#10751)
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
1 parent 9b04a03 commit 4bf789b

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

packages/custom-field/src/vaadin-custom-field.d.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,25 @@ export interface CustomFieldEventMap extends HTMLElementEventMap, CustomFieldCus
8080
* You may also manually set `disabled` or `readonly` attribute on this component to make the label
8181
* part look visually the same as on a `<vaadin-text-field>` when it is disabled or readonly.
8282
*
83+
* The following custom CSS properties are available for styling:
84+
*
85+
* Custom CSS property |
86+
* :--------------------------------------------------|
87+
* | `--vaadin-input-field-error-color` |
88+
* | `--vaadin-input-field-error-font-size` |
89+
* | `--vaadin-input-field-error-font-weight` |
90+
* | `--vaadin-input-field-error-line-height` |
91+
* | `--vaadin-input-field-label-color` |
92+
* | `--vaadin-input-field-label-font-size` |
93+
* | `--vaadin-input-field-label-font-weight` |
94+
* | `--vaadin-input-field-label-line-height` |
95+
* | `--vaadin-input-field-helper-color` |
96+
* | `--vaadin-input-field-helper-font-size` |
97+
* | `--vaadin-input-field-helper-font-weight` |
98+
* | `--vaadin-input-field-helper-line-height` |
99+
* | `--vaadin-input-field-required-indicator-color` |
100+
* | `--vaadin-input-field-required-indicator` |
101+
*
83102
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
84103
*
85104
* @fires {Event} change - Fired when the user commits a value change for any of the internal inputs.

packages/custom-field/src/vaadin-custom-field.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,25 @@ import { CustomFieldMixin } from './vaadin-custom-field-mixin.js';
4949
* You may also manually set `disabled` or `readonly` attribute on this component to make the label
5050
* part look visually the same as on a `<vaadin-text-field>` when it is disabled or readonly.
5151
*
52+
* The following custom CSS properties are available for styling:
53+
*
54+
* Custom CSS property |
55+
* :--------------------------------------------------|
56+
* | `--vaadin-input-field-error-color` |
57+
* | `--vaadin-input-field-error-font-size` |
58+
* | `--vaadin-input-field-error-font-weight` |
59+
* | `--vaadin-input-field-error-line-height` |
60+
* | `--vaadin-input-field-label-color` |
61+
* | `--vaadin-input-field-label-font-size` |
62+
* | `--vaadin-input-field-label-font-weight` |
63+
* | `--vaadin-input-field-label-line-height` |
64+
* | `--vaadin-input-field-helper-color` |
65+
* | `--vaadin-input-field-helper-font-size` |
66+
* | `--vaadin-input-field-helper-font-weight` |
67+
* | `--vaadin-input-field-helper-line-height` |
68+
* | `--vaadin-input-field-required-indicator-color` |
69+
* | `--vaadin-input-field-required-indicator` |
70+
*
5271
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
5372
*
5473
* @fires {Event} change - Fired when the user commits a value change for any of the internal inputs.

0 commit comments

Comments
 (0)