Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Common/GameInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const GameInfo: React.FC<Props> = ({
<select
ref={maiaSelectRef}
value={currentMaiaModel}
className="cursor-pointer appearance-none bg-transparent leading-none focus:outline-none"
className="maia-native-select cursor-pointer appearance-none bg-transparent leading-none focus:outline-none"
onChange={(e) => setCurrentMaiaModel(e.target.value)}
>
{MAIA_MODELS?.map((model) => (
Expand Down
4 changes: 2 additions & 2 deletions src/components/Common/PlaySetupModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export const PlaySetupModal: React.FC<Props> = (props: Props) => {
<select
id="partner-select"
value={maiaPartnerVersion}
className="w-full min-w-0 rounded border border-glass-border bg-glass px-3 py-2 text-sm text-white/90 focus:outline-none"
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"
onChange={(e) => setMaiaPartnerVersion(e.target.value)}
>
{maiaOptions.map((maia) => (
Expand Down Expand Up @@ -327,7 +327,7 @@ export const PlaySetupModal: React.FC<Props> = (props: Props) => {
<select
id="opponent-select"
value={maiaVersion}
className="w-full min-w-0 rounded border border-glass-border bg-glass px-3 py-2 text-sm text-white/90 focus:outline-none"
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"
onChange={(e) => setMaiaVersion(e.target.value)}
>
{maiaOptions.map((maia) => (
Expand Down
4 changes: 2 additions & 2 deletions src/components/Openings/OpeningSelectionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ const DrillStudioPanel: React.FC<{
setSelectedMaiaVersion(version)
}
}}
className="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"
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"
>
{MAIA3_OPPONENT_RATINGS.map((version) => (
<option key={version.id} value={version.id}>
Expand Down Expand Up @@ -1402,7 +1402,7 @@ const SelectedPanel: React.FC<{
setSelectedMaiaVersion(version)
}
}}
className="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"
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"
>
{MAIA3_OPPONENT_RATINGS.map((version) => (
<option key={version.id} value={version.id}>
Expand Down
7 changes: 7 additions & 0 deletions src/styles/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,13 @@ svg {
background-color: rgb(var(--color-human-accent4));
}

.maia-native-select option,
.maia-native-select optgroup {
background-color: rgb(255 255 255);
color: rgb(17 24 39);
-webkit-text-fill-color: rgb(17 24 39);
}

.spinner {
border: 4px solid rgb(var(--color-background4));
border-left-color: rgb(var(--color-human-accent1));
Expand Down
Loading