Export inputs parts in sl-select; fixes #206

pull/224/head
Cory LaViska 2020-09-08 07:39:46 -04:00
rodzic 66cb7bb238
commit 4bf67c839a
2 zmienionych plików z 11 dodań i 2 usunięć

Wyświetl plik

@ -1,5 +1,9 @@
# Changelog
## Next
- Added `input`, `label`, `prefix`, `clear-button`, `suffix`, `help-text` exported parts to `sl-select` to make the input customizable
## 2.0.0-beta.18
- Added `name` and `invalid` prop to `sl-color-picker`

Wyświetl plik

@ -15,11 +15,16 @@ let id = 0;
* @part form-control - The form control that wraps the label and the input.
* @part help-text - The select's help text.
* @part icon - The select's icon.
* @part input - The select's input control.
* @part label - The select's label.
* @part menu - The select menu, a <sl-menu> element.
* @part tag - The multiselect option, a <sl-tag> element.
* @part tags - The container in which multiselect options are rendered.
* @part input - The select's input control, exported from <sl-input>.
* @part label - The select's label, exported from <sl-input>.
* @part prefix - The select's prefix, exported from <sl-input>.
* @part clear-button - The input's clear button, exported from <sl-input>.
* @part suffix - The select's suffix, exported from <sl-input>.
* @part help-text - The select's help text, exported from <sl-input>.
*/
@Component({
@ -393,7 +398,7 @@ export class Select {
>
<sl-input
slot="trigger"
part="input"
exportparts="input, label, prefix, clear-button, suffix, help-text"
ref={el => (this.input = el)}
id={this.inputId}
class="select__input"