Fix RaidCombobox placeholder and Select styles (#332)

* Fix server unavailable message

Booleans are hard

* Remove a log

* Add characters from 2023-06 Flash Gala

* Add "all battles" string

* Fix placeholder for RaidCombobox in FilterBar

* Fix select trigger styles
This commit is contained in:
Justin Edmund 2023-06-22 02:29:22 -07:00 committed by GitHub
parent b94ff33d04
commit 2f572dc71c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 5 deletions

View file

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

View file

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

View file

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

View file

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

View file

@ -419,6 +419,7 @@
"katana": "Katana"
},
"raids": {
"all": "All battles",
"placeholder": "Select a raid...",
"sections": {
"raids": "Raids",

View file

@ -416,6 +416,7 @@
"katana": "刀"
},
"raids": {
"all": "すべてのバトル",
"placeholder": "バトルを選択...",
"sections": {
"raids": "マルチ",