Skip to content

Commit

Permalink
add parts to select
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Feb 19, 2022
1 parent 0d3bcb0 commit 5c0da06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/resources/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis
## 2.0.0-beta.69

- Added `web-types.json` to improve the dev experience for WebStorm/PHPStorm users [#328](https://github.com/shoelace-style/shoelace/issues/328)
- Added `tag-base`, `tag-content`, and `tag-remove-button` parts to `<sl-select>` [#682](https://github.com/shoelace-style/shoelace/discussions/682)
- Fixed a bug that caused an error when pressing up/down in `<sl-select>`
- Fixed a bug that caused `<sl-details>` to not show when double clicking the summary while open [#662](https://github.com/shoelace-style/shoelace/issues/662)
- Fixed a bug that prevented the first/last menu item from receiving focus when pressing up/down in `<sl-dropdown>`
Expand Down
6 changes: 5 additions & 1 deletion src/components/select/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ import { watch } from '~/internal/watch';
* @csspart suffix - The select's suffix.
* @csspart menu - The select menu, an `<sl-menu>` element.
* @csspart tag - The multi select option, an `<sl-tag>` element.
* @csspart tag-base - The tag's `base` part.
* @csspart tag-content - The tag's `content` part.
* @csspart tag-remove-button - The tag's `remove-button` part.
* @csspart tags - The container in which multi select options are rendered.
*/
@customElement('sl-select')
Expand Down Expand Up @@ -378,7 +381,8 @@ export default class SlSelect extends LitElement {
this.displayTags = checkedItems.map((item: SlMenuItem) => {
return html`
<sl-tag
exportparts="base:tag"
part="tag"
exportparts="base:tag-base, content:tag-content, remove-button:tag-remove-button"
variant="neutral"
size=${this.size}
?pill=${this.pill}
Expand Down

0 comments on commit 5c0da06

Please sign in to comment.