Skip to content

Commit 45aa8cd

Browse files
committed
More compact badge in the multi select
1 parent 98fd480 commit 45aa8cd

2 files changed

Lines changed: 3 additions & 16 deletions

File tree

src/includes/vscode-select/styles.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ export default [
6868
line-height: 16px;
6969
margin: 2px;
7070
padding: 2px 3px;
71-
text-transform: uppercase;
7271
white-space: nowrap;
7372
}
7473

src/vscode-multi-select/vscode-multi-select.ts

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -326,22 +326,10 @@ export class VscodeMultiSelect
326326
private _renderLabel() {
327327
switch (this._opts.selectedIndexes.length) {
328328
case 0:
329-
return html`<span
330-
class="select-face-badge no-item"
331-
aria-label="Click to open the list of items"
332-
>0 selected</span
333-
>`;
334-
case 1:
335-
return html`<span
336-
class="select-face-badge"
337-
aria-label="Click to open the list of items"
338-
>1 item selected</span
339-
>`;
329+
return html`<span class="select-face-badge no-item">0 selected</span>`;
340330
default:
341-
return html`<span
342-
class="select-face-badge"
343-
aria-label="Click to open the list of items"
344-
>${this._opts.selectedIndexes.length} items selected</span
331+
return html`<span class="select-face-badge"
332+
>${this._opts.selectedIndexes.length} selected</span
345333
>`;
346334
}
347335
}

0 commit comments

Comments
 (0)