File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ export const BroadcastGameList: React.FC<BroadcastGameListProps> = ({
9696 id = "round-selector"
9797 value = { selectedRoundId }
9898 onChange = { ( e ) => handleRoundChange ( e . target . value ) }
99- className = "w-full rounded-md border border-glass-border bg-glass px-2 py-1 text-xs text-white/90 backdrop-blur-sm focus:outline-none focus:ring-1 focus:ring-human-4"
99+ className = "edge-dark-select w-full rounded-md border border-glass-border bg-glass px-2 py-1 text-xs text-white/90 backdrop-blur-sm focus:outline-none focus:ring-1 focus:ring-human-4"
100100 >
101101 { broadcastController . currentBroadcast . rounds . map ( ( round ) => (
102102 < option key = { round . id } value = { round . id } >
Original file line number Diff line number Diff line change @@ -45,15 +45,11 @@ export const ConfigureAnalysis: React.FC<Props> = ({
4545 < div className = "relative inline-flex w-full items-center" >
4646 < select
4747 value = { currentMaiaModel }
48- className = "w-full cursor-pointer appearance-none rounded border border-glass-border bg-glass py-[5px] pl-2.5 pr-6 text-xs text-white/90 outline-none transition duration-200 hover:bg-glass-stronger"
48+ className = "edge-dark-select w-full cursor-pointer appearance-none rounded border border-glass-border bg-glass py-[5px] pl-2.5 pr-6 text-xs text-white/90 outline-none transition duration-200 hover:bg-glass-stronger"
4949 onChange = { ( e ) => setCurrentMaiaModel ( e . target . value ) }
5050 >
5151 { MAIA_MODELS . map ( ( model ) => (
52- < option
53- value = { model }
54- key = { model }
55- className = "bg-transparent text-white"
56- >
52+ < option value = { model } key = { model } >
5753 { model . replace ( 'maia_kdd_' , 'Maia ' ) }
5854 </ option >
5955 ) ) }
Original file line number Diff line number Diff line change @@ -427,7 +427,7 @@ export const Highlight: React.FC<Props> = ({
427427 ref = { maiaHeaderSelectRef }
428428 value = { currentMaiaModel }
429429 onChange = { ( e ) => setCurrentMaiaModel ( e . target . value ) }
430- className = "pointer-events-none absolute inset-0 h-full w-full appearance-none opacity-0"
430+ className = "edge-dark-select pointer-events-none absolute inset-0 h-full w-full appearance-none opacity-0"
431431 >
432432 { MAIA_MODELS . map ( ( model ) => (
433433 < option
@@ -448,7 +448,7 @@ export const Highlight: React.FC<Props> = ({
448448 ref = { maiaHeaderSelectRef }
449449 value = { currentMaiaModel }
450450 onChange = { ( e ) => setCurrentMaiaModel ( e . target . value ) }
451- className = { `cursor-pointer appearance-none bg-transparent text-center ${ splitTitleTextClass } text-human-1 outline-none transition-colors duration-200 hover:text-human-1/80` }
451+ className = { `edge-dark-select cursor-pointer appearance-none bg-transparent text-center ${ splitTitleTextClass } text-human-1 outline-none transition-colors duration-200 hover:text-human-1/80` }
452452 >
453453 { MAIA_MODELS . map ( ( model ) => (
454454 < option
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export const GameInfo: React.FC<Props> = ({
8282 < select
8383 ref = { maiaSelectRef }
8484 value = { currentMaiaModel }
85- className = "maia-native -select cursor-pointer appearance-none bg-transparent leading-none focus:outline-none"
85+ className = "edge-dark -select cursor-pointer appearance-none bg-transparent leading-none focus:outline-none"
8686 onChange = { ( e ) => setCurrentMaiaModel ( e . target . value ) }
8787 >
8888 { MAIA_MODELS ?. map ( ( model ) => (
Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ export const PlaySetupModal: React.FC<Props> = (props: Props) => {
297297 < select
298298 id = "partner-select"
299299 value = { maiaPartnerVersion }
300- className = "maia-native -select w-full min-w-0 rounded border border-glass-border bg-glass px-3 py-2 text-sm text-white/90 focus:outline-none"
300+ className = "edge-dark -select w-full min-w-0 rounded border border-glass-border bg-glass px-3 py-2 text-sm text-white/90 focus:outline-none"
301301 onChange = { ( e ) => setMaiaPartnerVersion ( e . target . value ) }
302302 >
303303 { maiaOptions . map ( ( maia ) => (
@@ -327,7 +327,7 @@ export const PlaySetupModal: React.FC<Props> = (props: Props) => {
327327 < select
328328 id = "opponent-select"
329329 value = { maiaVersion }
330- className = "maia-native -select w-full min-w-0 rounded border border-glass-border bg-glass px-3 py-2 text-sm text-white/90 focus:outline-none"
330+ className = "edge-dark -select w-full min-w-0 rounded border border-glass-border bg-glass px-3 py-2 text-sm text-white/90 focus:outline-none"
331331 onChange = { ( e ) => setMaiaVersion ( e . target . value ) }
332332 >
333333 { maiaOptions . map ( ( maia ) => (
Original file line number Diff line number Diff line change @@ -1121,7 +1121,7 @@ const DrillStudioPanel: React.FC<{
11211121 setSelectedMaiaVersion ( version )
11221122 }
11231123 } }
1124- className = "maia-native -select w-full rounded-md border border-white/[0.08] bg-white/[0.06] px-2.5 py-[8px] text-[14px] text-white/90 focus:outline-none"
1124+ className = "edge-dark -select w-full rounded-md border border-white/[0.08] bg-white/[0.06] px-2.5 py-[8px] text-[14px] text-white/90 focus:outline-none"
11251125 >
11261126 { MAIA3_OPPONENT_RATINGS . map ( ( version ) => (
11271127 < option key = { version . id } value = { version . id } >
@@ -1402,7 +1402,7 @@ const SelectedPanel: React.FC<{
14021402 setSelectedMaiaVersion ( version )
14031403 }
14041404 } }
1405- className = "maia-native -select w-full rounded border border-glass-border bg-white/5 p-2 text-xs text-white/90 backdrop-blur-sm focus:outline-none focus:ring-1 focus:ring-white/20 md:text-sm"
1405+ className = "edge-dark -select w-full rounded border border-glass-border bg-white/5 p-2 text-xs text-white/90 backdrop-blur-sm focus:outline-none focus:ring-1 focus:ring-white/20 md:text-sm"
14061406 >
14071407 { MAIA3_OPPONENT_RATINGS . map ( ( version ) => (
14081408 < option key = { version . id } value = { version . id } >
Original file line number Diff line number Diff line change @@ -185,11 +185,15 @@ svg {
185185 background-color : rgb (var (--color-human-accent4 ));
186186}
187187
188- .maia-native-select option ,
189- .maia-native-select optgroup {
190- background-color : rgb (255 255 255 );
191- color : rgb (17 24 39 );
192- -webkit-text-fill-color : rgb (17 24 39 );
188+ .edge-dark-select {
189+ color-scheme : dark;
190+ }
191+
192+ .edge-dark-select option ,
193+ .edge-dark-select optgroup {
194+ background-color : rgb (var (--color-backdrop ));
195+ color : rgb (var (--color-text-primary ));
196+ -webkit-text-fill-color : rgb (var (--color-text-primary ));
193197}
194198
195199.spinner {
You can’t perform that action at this time.
0 commit comments