Skip to content

Commit

Permalink
Fix language select styling (#932)
Browse files Browse the repository at this point in the history
  • Loading branch information
majakomel authored Apr 25, 2024
1 parent 3011499 commit 4fd9583
Showing 1 changed file with 24 additions and 19 deletions.
43 changes: 24 additions & 19 deletions components/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,30 @@ const StyledNavItem = styled(NLink)`
`

const LanguageSelect = styled.select`
color: ${(props) => props.theme.colors.white};
background: none;
opacity: 0.6;
border: none;
text-transform: capitalize;
cursor: pointer;
font-family: inherit;
font-size: inherit;
padding: 0;
padding-bottom: 6px;
outline: none;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
-ms-appearance: none;
-o-appearance: none;
&:hover {
opacity: 1;
}
color: ${(props) => props.theme.colors.white};
background: none;
opacity: 0.6;
border: none;
text-transform: capitalize;
cursor: pointer;
font-family: inherit;
font-size: inherit;
padding: 0;
padding-bottom: 6px;
outline: none;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
-ms-appearance: none;
-o-appearance: none;
&:hover {
opacity: 1;
}
// reset option styling for browsers that apply it to its native styling (Brave)
> option {
color: initial;
opacity: initial;
}
`

const NavItem = ({ label, href }) => {
Expand Down

0 comments on commit 4fd9583

Please sign in to comment.