mirror of
https://github.com/UiO-Gaming/name-100-uio-gamers.git
synced 2026-11-05 13:56:53 +01:00
ensure consistent styling across themes
This commit is contained in:
1 file changed
+4
-3
@@ -24,15 +24,16 @@ const LanguageMenu = () => {
|
|||||||
</MenuButton>
|
</MenuButton>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Dropdown Menu */}
|
<MenuItems className="bg-background-secondary border-border absolute right-0 z-50 mt-2 w-32 origin-top-right rounded border shadow-lg">
|
||||||
<MenuItems className="absolute right-0 z-50 mt-2 w-32 origin-top-right rounded bg-white">
|
|
||||||
<div className="py-1">
|
<div className="py-1">
|
||||||
{LANGUAGE_OPTIONS.map(({ code, label }) => (
|
{LANGUAGE_OPTIONS.map(({ code, label }) => (
|
||||||
<MenuItem
|
<MenuItem
|
||||||
key={code}
|
key={code}
|
||||||
as="button"
|
as="button"
|
||||||
className={({ active }) =>
|
className={({ active }) =>
|
||||||
`w-full cursor-pointer px-4 py-2 text-center text-sm text-gray-700 ${active ? "bg-gray-300" : ""}`
|
`text-foreground w-full cursor-pointer px-4 py-2 text-center text-sm transition-colors ${
|
||||||
|
active ? "bg-accent-primary text-white" : "hover:bg-accent-primary hover:text-white"
|
||||||
|
}`
|
||||||
}
|
}
|
||||||
onClick={() => setLanguage(code)}
|
onClick={() => setLanguage(code)}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in new issue
Block a user