Skip to content

Commit 034f430

Browse files
josercarcamobenelan
authored andcommitted
feat(combobox-item): update idle icons (#11801)
**Related Issue:** #10580 ## Summary Updated selection icons in the idle state.
1 parent e82ae1d commit 034f430

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

packages/calcite-components/src/components/combobox-item/combobox-item.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,13 @@ ul:focus {
112112

113113
.icon {
114114
@apply inline-flex
115-
opacity-0
116115
duration-150
117116
ease-in-out;
117+
118+
color: var(--calcite-color-border-input);
118119
}
119120

120121
:host([selected]) .icon {
121-
@apply opacity-100;
122122
color: var(--calcite-combobox-selected-icon-color, var(--calcite-color-brand));
123123
}
124124

packages/calcite-components/src/components/combobox-item/combobox-item.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,13 @@ export class ComboboxItem extends LitElement implements InteractiveComponent {
280280
} = this;
281281
const isSingleSelect = isSingleLike(this.selectionMode);
282282
const icon = disabled || isSingleSelect ? undefined : "check-square-f";
283-
const selectionIcon = isSingleSelect ? "circle-inset-large" : "check-square-f";
283+
const selectionIcon = isSingleSelect
284+
? this.selected
285+
? "circle-inset-large"
286+
: "circle"
287+
: this.selected
288+
? "check-square-f"
289+
: "square";
284290
const headingText = heading || textLabel;
285291
const itemLabel = label || value;
286292

0 commit comments

Comments
 (0)