on second thought

This commit is contained in:
Cory LaViska
2025-02-03 11:40:23 -05:00
parent 22092ed87f
commit 0dfef125e0
2 changed files with 6 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ During the alpha period, things might break! We take breaking changes very serio
## Next
- Added an orientation example to the native radio docs
- Added the `tag-counter` part to `<wa-select>` to allow targeting the tag that shows when more than the max number of visible items has been selected
- Added the `tag` part (and associated exported parts) to `<wa-select>` to allow targeting the tag that shows when more than the max number of visible items have been selected
- Fixed a number of broken event listeners throughout the docs
- Fixed a bug in `<wa-card>` that prevented slots from showing automatically without `with-` attributes

View File

@@ -71,10 +71,6 @@ import styles from './select.css';
* @csspart tag__content - The tag's content part.
* @csspart tag__remove-button - The tag's remove button.
* @csspart tag__remove-button__base - The tag's remove button base part.
* @csspart tag-counter - The tag that shows when more than the max number of options have been shown.
* @csspart tag-counter__content - The tag counter's content part.
* @csspart tag-counter__remove-button - The tag counter's remove button.
* @csspart tag-counter__remove-button__base - The tag counter's remove button base part.
* @csspart clear-button - The clear button.
* @csspart expand-icon - The container that wraps the expand icon.
*
@@ -666,12 +662,12 @@ export default class WaSelect extends WebAwesomeFormAssociatedElement {
// Hit tag limit
return html`
<wa-tag
part="tag-counter"
part="tag"
exportparts="
base:tag-counter__base,
content:tag-counter__content,
remove-button:tag-counter__remove-button,
remove-button__base:tag-counter__remove-button__base
base:tag__base,
content:tag__content,
remove-button:tag__remove-button,
remove-button__base:tag__remove-button__base
"
>+${this.selectedOptions.length - index}</wa-tag
>