Skip to content

Commit a6fe020

Browse files
authored
docs: document popover and tooltip base styles properties (#10617)
1 parent cea5e86 commit a6fe020

File tree

4 files changed

+64
-32
lines changed

4 files changed

+64
-32
lines changed

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

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,23 @@ export type PopoverEventMap = HTMLElementEventMap & PopoverCustomEventMap;
5151
* -----------------|----------------------------------------
5252
* `position` | Reflects the `position` property value.
5353
*
54-
* ### Custom CSS Properties
55-
*
5654
* The following custom CSS properties are available for styling:
5755
*
58-
* Custom CSS property | Description
59-
* ---------------------------------|-------------
60-
* `--vaadin-popover-offset-top` | Used as an offset when the popover is aligned vertically below the target
61-
* `--vaadin-popover-offset-bottom` | Used as an offset when the popover is aligned vertically above the target
62-
* `--vaadin-popover-offset-start` | Used as an offset when the popover is aligned horizontally after the target
63-
* `--vaadin-popover-offset-end` | Used as an offset when the popover is aligned horizontally before the target
56+
* Custom CSS property |
57+
* :----------------------------------------|
58+
* |`--vaadin-overlay-backdrop-background` |
59+
* |`--vaadin-popover-arrow-border-radius` |
60+
* |`--vaadin-popover-arrow-size` |
61+
* |`--vaadin-popover-background` |
62+
* |`--vaadin-popover-border-color` |
63+
* |`--vaadin-popover-border-radius` |
64+
* |`--vaadin-popover-border-width` |
65+
* |`--vaadin-popover-offset-bottom` |
66+
* |`--vaadin-popover-offset-end` |
67+
* |`--vaadin-popover-offset-start` |
68+
* |`--vaadin-popover-offset-top` |
69+
* |`--vaadin-popover-padding` |
70+
* |`--vaadin-popover-shadow` |
6471
*
6572
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
6673
*

packages/popover/src/vaadin-popover.js

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -186,16 +186,23 @@ const isLastOverlay = (overlay) => {
186186
* -----------------|----------------------------------------
187187
* `position` | Reflects the `position` property value.
188188
*
189-
* ### Custom CSS Properties
190-
*
191189
* The following custom CSS properties are available for styling:
192190
*
193-
* Custom CSS property | Description
194-
* ---------------------------------|-------------
195-
* `--vaadin-popover-offset-top` | Used as an offset when the popover is aligned vertically below the target
196-
* `--vaadin-popover-offset-bottom` | Used as an offset when the popover is aligned vertically above the target
197-
* `--vaadin-popover-offset-start` | Used as an offset when the popover is aligned horizontally after the target
198-
* `--vaadin-popover-offset-end` | Used as an offset when the popover is aligned horizontally before the target
191+
* Custom CSS property |
192+
* :----------------------------------------|
193+
* |`--vaadin-overlay-backdrop-background` |
194+
* |`--vaadin-popover-arrow-border-radius` |
195+
* |`--vaadin-popover-arrow-size` |
196+
* |`--vaadin-popover-background` |
197+
* |`--vaadin-popover-border-color` |
198+
* |`--vaadin-popover-border-radius` |
199+
* |`--vaadin-popover-border-width` |
200+
* |`--vaadin-popover-offset-bottom` |
201+
* |`--vaadin-popover-offset-end` |
202+
* |`--vaadin-popover-offset-start` |
203+
* |`--vaadin-popover-offset-top` |
204+
* |`--vaadin-popover-padding` |
205+
* |`--vaadin-popover-shadow` |
199206
*
200207
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
201208
*

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

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,25 @@ export interface TooltipEventMap extends HTMLElementEventMap, TooltipCustomEvent
5757
* `markdown` | Reflects the `markdown` property value.
5858
* `position` | Reflects the `position` property value.
5959
*
60-
* ### Custom CSS Properties
61-
*
6260
* The following custom CSS properties are available for styling:
6361
*
64-
* Custom CSS property | Description
65-
* ---------------------------------|-------------
66-
* `--vaadin-tooltip-offset-top` | Used as an offset when the tooltip is aligned vertically below the target
67-
* `--vaadin-tooltip-offset-bottom` | Used as an offset when the tooltip is aligned vertically above the target
68-
* `--vaadin-tooltip-offset-start` | Used as an offset when the tooltip is aligned horizontally after the target
69-
* `--vaadin-tooltip-offset-end` | Used as an offset when the tooltip is aligned horizontally before the target
62+
* Custom CSS property |
63+
* :----------------------------------|
64+
* | `--vaadin-tooltip-background` |
65+
* | `--vaadin-tooltip-border-color` |
66+
* | `--vaadin-tooltip-border-radius` |
67+
* | `--vaadin-tooltip-border-width` |
68+
* | `--vaadin-tooltip-font-size` |
69+
* | `--vaadin-tooltip-font-weight` |
70+
* | `--vaadin-tooltip-line-height` |
71+
* | `--vaadin-tooltip-max-width` |
72+
* | `--vaadin-tooltip-offset-bottom` |
73+
* | `--vaadin-tooltip-offset-end` |
74+
* | `--vaadin-tooltip-offset-start` |
75+
* | `--vaadin-tooltip-offset-top` |
76+
* | `--vaadin-tooltip-padding` |
77+
* | `--vaadin-tooltip-shadow` |
78+
* | `--vaadin-tooltip-text-color` |
7079
*
7180
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
7281
*

packages/tooltip/src/vaadin-tooltip.js

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,25 @@ import { TooltipMixin } from './vaadin-tooltip-mixin.js';
4949
* `markdown` | Reflects the `markdown` property value.
5050
* `position` | Reflects the `position` property value.
5151
*
52-
* ### Custom CSS Properties
53-
*
5452
* The following custom CSS properties are available for styling:
5553
*
56-
* Custom CSS property | Description
57-
* ---------------------------------|-------------
58-
* `--vaadin-tooltip-offset-top` | Used as an offset when the tooltip is aligned vertically below the target
59-
* `--vaadin-tooltip-offset-bottom` | Used as an offset when the tooltip is aligned vertically above the target
60-
* `--vaadin-tooltip-offset-start` | Used as an offset when the tooltip is aligned horizontally after the target
61-
* `--vaadin-tooltip-offset-end` | Used as an offset when the tooltip is aligned horizontally before the target
54+
* Custom CSS property |
55+
* :----------------------------------|
56+
* | `--vaadin-tooltip-background` |
57+
* | `--vaadin-tooltip-border-color` |
58+
* | `--vaadin-tooltip-border-radius` |
59+
* | `--vaadin-tooltip-border-width` |
60+
* | `--vaadin-tooltip-font-size` |
61+
* | `--vaadin-tooltip-font-weight` |
62+
* | `--vaadin-tooltip-line-height` |
63+
* | `--vaadin-tooltip-max-width` |
64+
* | `--vaadin-tooltip-offset-bottom` |
65+
* | `--vaadin-tooltip-offset-end` |
66+
* | `--vaadin-tooltip-offset-start` |
67+
* | `--vaadin-tooltip-offset-top` |
68+
* | `--vaadin-tooltip-padding` |
69+
* | `--vaadin-tooltip-shadow` |
70+
* | `--vaadin-tooltip-text-color` |
6271
*
6372
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
6473
*

0 commit comments

Comments
 (0)