Fix select trigger styles

This commit is contained in:
Justin Edmund 2023-06-22 02:27:51 -07:00
parent 149fc7bee8
commit bdb76bce1e
4 changed files with 12 additions and 4 deletions

View file

@ -78,7 +78,6 @@
// background-position-x: 95%; // background-position-x: 95%;
// background-size: $unit * 1.5; // background-size: $unit * 1.5;
background-color: var(--select-contained-bg); background-color: var(--select-contained-bg);
color: $grey-55;
font-size: $font-small; font-size: $font-small;
margin: 0; margin: 0;
max-width: 200px; max-width: 200px;

View file

@ -21,9 +21,9 @@
&:hover { &:hover {
background-color: var(--input-bg-hover); background-color: var(--input-bg-hover);
color: var(--text-primary);
cursor: pointer; cursor: pointer;
span:not(.SelectIcon),
&[data-placeholder] > span:not(.SelectIcon) { &[data-placeholder] > span:not(.SelectIcon) {
color: var(--text-primary); color: var(--text-primary);
} }
@ -70,6 +70,10 @@
fill: var(--icon-secondary); fill: var(--icon-secondary);
} }
} }
span:not(.SelectIcon) {
color: var(--text-secondary);
}
} }
.Select { .Select {

View file

@ -185,7 +185,7 @@
} }
} }
.SelectTrigger.Raid .Value.Empty { .SelectTrigger.Raid:not(.Highlighted) .Value.Empty {
color: var(--text-tertiary); color: var(--text-tertiary);
} }

View file

@ -542,10 +542,15 @@ const RaidCombobox = (props: Props) => {
className="Flush" className="Flush"
open={open} open={open}
onOpenChange={toggleOpen} onOpenChange={toggleOpen}
trigger={{ className: 'Raid' }}
placeholder={ placeholder={
props.showAllRaidsOption ? t('raids.all') : t('raids.placeholder') props.showAllRaidsOption ? t('raids.all') : t('raids.placeholder')
} }
trigger={{
className: classNames({
Raid: true,
Highlighted: props.showAllRaidsOption,
}),
}}
triggerTabIndex={props.tabIndex} triggerTabIndex={props.tabIndex}
value={renderTriggerContent()} value={renderTriggerContent()}
> >