@@ -80,26 +80,30 @@ import { SelectBaseMixin } from './vaadin-select-base-mixin.js';
8080 *
8181 * The following custom properties are available for styling:
8282 *
83- * Custom property | Description | Target element | Default
84- * ----------------------------------- |------------------------------| -------------------------|--------
85- * `--vaadin-field-default-width` | Default width of the field | :host | `12em`
86- * `--vaadin-select-overlay-width` | Width of the overlay | `vaadin-select-overlay` |
83+ * Custom property | Description | Default
84+ * ---------------------------------|-----------------------------|--------
85+ * `--vaadin-field-default-width` | Default width of the field | `12em`
86+ * `--vaadin-select-overlay-width` | Width of the overlay |
8787 *
8888 * `<vaadin-select>` provides mostly the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.
8989 * See [`<vaadin-text-field>`](#/elements/vaadin-text-field) for the styling documentation.
9090 *
9191 *
9292 * In addition to `<vaadin-text-field>` parts, the following parts are available for theming:
9393 *
94- * Part name | Description
95- * ----------------|----------------
96- * `toggle-button` | The toggle button
94+ * Part name | Description
95+ * -----------------|----------------
96+ * `toggle-button` | The toggle button
97+ * `backdrop` | Backdrop of the overlay
98+ * `overlay` | The overlay container
99+ * `content` | The overlay content
97100 *
98101 * In addition to `<vaadin-text-field>` state attributes, the following state attributes are available for theming:
99102 *
100- * Attribute | Description | Part name
101- * ----------|-----------------------------|-----------
102- * `opened` | Set when the select is open | :host
103+ * Attribute | Description
104+ * ----------|-----------------------------
105+ * `opened` | Set when the select is open
106+ * `phone` | Set when the overlay is shown in phone mode
103107 *
104108 * There are two exceptions in terms of styling compared to `<vaadin-text-field>`:
105109 * - the `clear-button` shadow DOM part does not exist in `<vaadin-select>`.
@@ -173,6 +177,7 @@ class Select extends SelectBaseMixin(ElementMixin(ThemableMixin(PolylitMixin(Lum
173177
174178 < vaadin-select-overlay
175179 id ="overlay "
180+ popover ="manual "
176181 .owner ="${ this } "
177182 .positionTarget ="${ this . _inputContainer } "
178183 .opened ="${ this . opened } "
@@ -181,9 +186,12 @@ class Select extends SelectBaseMixin(ElementMixin(ThemableMixin(PolylitMixin(Lum
181186 ?phone ="${ this . _phone } "
182187 theme ="${ ifDefined ( this . _theme ) } "
183188 ?no-vertical-overlap ="${ this . noVerticalOverlap } "
189+ exportparts ="backdrop, overlay, content "
184190 @opened-changed ="${ this . _onOpenedChanged } "
185191 @vaadin-overlay-open ="${ this . _onOverlayOpen } "
186- > </ vaadin-select-overlay >
192+ >
193+ < slot name ="overlay "> </ slot >
194+ </ vaadin-select-overlay >
187195
188196 < slot name ="tooltip "> </ slot >
189197 < div class ="sr-only ">
0 commit comments