kopia lustrzana https://github.com/shoelace-style/shoelace
add parts
rodzic
a90b22c05d
commit
02fc39ebe0
|
@ -11,6 +11,7 @@ New versions of Shoelace are released as-needed and generally occur when a criti
|
|||
## Next
|
||||
|
||||
- Added support for the `inert` attribute on `<sl-menu-item>` to allow hidden menu items to not accept focus [#1107](https://github.com/shoelace-style/shoelace/issues/1107)
|
||||
- Added `tags` and `tag` parts to `<sl-select>`
|
||||
- Fixed a bug in `<sl-select>` that prevented placeholders from showing when `multiple` was used [#1109](https://github.com/shoelace-style/shoelace/issues/1109)
|
||||
- Fixed a bug in `<sl-select>` that caused tags to not be rounded when using the `pill` attribute [#1117](https://github.com/shoelace-style/shoelace/issues/1117)
|
||||
- Fixed a bug in `<sl-color-picker>` that logged a console error when parsing swatches with whitespace
|
||||
|
|
|
@ -55,6 +55,8 @@ import type { CSSResultGroup } from 'lit';
|
|||
* @csspart prefix - The container that wraps the prefix slot.
|
||||
* @csspart display-input - The element that displays the selected option's label, an `<input>` element.
|
||||
* @csspart listbox - The listbox container where options are slotted.
|
||||
* @csspart tags - The container that houses option tags when `multiselect` is used.
|
||||
* @csspart tag - The individual tags that represent each multiselect option.
|
||||
* @csspart clear-button - The clear button.
|
||||
* @csspart expand-icon - The container that wraps the expand icon.
|
||||
*/
|
||||
|
@ -707,6 +709,7 @@ export default class SlSelect extends ShoelaceElement implements ShoelaceFormCon
|
|||
if (index < this.maxOptionsVisible || this.maxOptionsVisible <= 0) {
|
||||
return html`
|
||||
<sl-tag
|
||||
part="tag"
|
||||
?pill=${this.pill}
|
||||
size=${this.size}
|
||||
removable
|
||||
|
|
Ładowanie…
Reference in New Issue