Skip to content

Commit 4f1c1e8

Browse files
committed
docs: add icon custom CSS properties to JSDoc
1 parent 7442f4f commit 4f1c1e8

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

packages/icon/src/vaadin-icon.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ import { IconMixin } from './vaadin-icon-mixin.js';
4848
*
4949
* ### Styling
5050
*
51+
* The following custom CSS properties are available for styling:
52+
*
53+
* Custom CSS property | Description
54+
* -----------------------------|-------------
55+
* `--vaadin-icon-size` | Size (width and height) of the icon
56+
* `--vaadin-icon-stroke-width` | Stroke width of the SVG icon
57+
* `--vaadin-icon-visual-size` | Visual size of the icon
58+
*
5159
* The following state attributes are available for styling:
5260
*
5361
* Attribute | Description

packages/icon/src/vaadin-icon.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ import { ensureSvgLiteral } from './vaadin-icon-svg.js';
5656
*
5757
* ### Styling
5858
*
59+
* The following custom CSS properties are available for styling:
60+
*
61+
* Custom CSS property | Description
62+
* -----------------------------|-------------
63+
* `--vaadin-icon-size` | Size (width and height) of the icon
64+
* `--vaadin-icon-stroke-width` | Stroke width of the SVG icon
65+
* `--vaadin-icon-visual-size` | Visual size of the icon
66+
*
5967
* The following state attributes are available for styling:
6068
*
6169
* Attribute | Description

0 commit comments

Comments
 (0)