Skip to content

Commit 8766c36

Browse files
authored
Merge pull request #12136 from ethereum/lang-menu-style
LanguagePicker style adjustments
2 parents 0ab1d69 + 453925b commit 8766c36

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/components/LanguagePicker/MenuItem.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,15 @@ const MenuItem = forwardRef(({ displayInfo, ...props }: ItemProps, ref) => {
6161
bg={isCurrent ? "background.base" : "transparent"}
6262
color="body.base"
6363
textDecoration="none"
64-
data-group
6564
onFocus={(e) => {
6665
e.target.scrollIntoView({ block: "nearest" })
6766
}}
6867
scrollMarginY="8"
69-
_hover={{ bg: "primary.lowContrast", textDecoration: "none" }}
68+
_hover={{
69+
bg: "primary.lowContrast",
70+
textDecoration: "none",
71+
"p.language-name": { color: "primary.base" },
72+
}}
7073
_focus={{ bg: "primary.lowContrast" }}
7174
sx={{
7275
p: {
@@ -84,8 +87,9 @@ const MenuItem = forwardRef(({ displayInfo, ...props }: ItemProps, ref) => {
8487
<Box flex={1}>
8588
<Flex alignItems="center" gap={2}>
8689
<Text
90+
className="language-name"
8791
fontSize="lg"
88-
color={isCurrent ? "primary.highContrast" : "primary.base"}
92+
color={isCurrent ? "primary.highContrast" : "body.base"}
8993
>
9094
{targetName}
9195
</Text>
@@ -108,7 +112,9 @@ const MenuItem = forwardRef(({ displayInfo, ...props }: ItemProps, ref) => {
108112
{sourceName}
109113
</Text>
110114
</Box>
111-
{isCurrent && <Icon as={BsCheck} fontSize="2xl" color="primary.highContrast" />}
115+
{isCurrent && (
116+
<Icon as={BsCheck} fontSize="2xl" color="primary.highContrast" />
117+
)}
112118
</Flex>
113119
<Text
114120
textTransform="lowercase"

0 commit comments

Comments
 (0)