File tree Expand file tree Collapse file tree 3 files changed +28
-4
lines changed
vaadin-lumo-styles/src/components Expand file tree Collapse file tree 3 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,25 @@ export { AvatarI18n } from './vaadin-avatar-mixin.js';
1818 *
1919 * ### Styling
2020 *
21- * The following shadow DOM parts are exposed for styling:
21+ * The following shadow DOM parts are available for styling:
2222 *
2323 * Part name | Description
2424 * --------- | ---------------
2525 * `abbr` | The abbreviation element
2626 * `icon` | The icon element
2727 *
28+ * The following custom CSS properties are available for styling:
29+ *
30+ * Custom CSS property | Description
31+ * -------------------------------|-------------
32+ * `--vaadin-avatar-background` | Background color of the avatar
33+ * `--vaadin-avatar-border-color` | Border color of the avatar
34+ * `--vaadin-avatar-border-width` | Border width of the avatar
35+ * `--vaadin-avatar-font-size` | Font size of the avatar
36+ * `--vaadin-avatar-font-weight` | Font weight of the avatar
37+ * `--vaadin-avatar-size` | Size of the avatar
38+ * `--vaadin-avatar-text-color` | Text color of the avatar
39+ *
2840 * The following state attributes are available for styling:
2941 *
3042 * Attribute | Description
Original file line number Diff line number Diff line change @@ -24,13 +24,25 @@ import { AvatarMixin } from './vaadin-avatar-mixin.js';
2424 *
2525 * ### Styling
2626 *
27- * The following shadow DOM parts are exposed for styling:
27+ * The following shadow DOM parts are available for styling:
2828 *
2929 * Part name | Description
3030 * --------- | ---------------
3131 * `abbr` | The abbreviation element
3232 * `icon` | The icon element
3333 *
34+ * The following custom CSS properties are available for styling:
35+ *
36+ * Custom CSS property | Description
37+ * -------------------------------|-------------
38+ * `--vaadin-avatar-background` | Background color of the avatar
39+ * `--vaadin-avatar-border-color` | Border color of the avatar
40+ * `--vaadin-avatar-border-width` | Border width of the avatar
41+ * `--vaadin-avatar-font-size` | Font size of the avatar
42+ * `--vaadin-avatar-font-weight` | Font weight of the avatar
43+ * `--vaadin-avatar-size` | Size of the avatar
44+ * `--vaadin-avatar-text-color` | Text color of the avatar
45+ *
3446 * The following state attributes are available for styling:
3547 *
3648 * Attribute | Description
Original file line number Diff line number Diff line change 88 --vaadin-avatar-outline-width : var (--vaadin-focus-ring-width , 2px );
99 border : var (--vaadin-avatar-outline-width ) solid transparent;
1010 margin : calc (var (--vaadin-avatar-outline-width ) * -1 );
11- color : var (--lumo-secondary-text-color );
12- background-color : var (--lumo-contrast-10pct );
11+ color : var (--vaadin-avatar-text-color , var ( -- lumo-secondary-text-color) );
12+ background-color : var (--vaadin-avatar-background , var ( -- lumo-contrast-10pct) );
1313 outline : none;
1414 -webkit-font-smoothing : antialiased;
1515 -moz-osx-font-smoothing : grayscale;
You can’t perform that action at this time.
0 commit comments