Skip to content

Commit

Permalink
adjust locale button style on hover (#1972)
Browse files Browse the repository at this point in the history
Co-authored-by: Katina Anachkova <[email protected]>
  • Loading branch information
katina-anachkova and Katina Anachkova authored Nov 8, 2024
1 parent fde9809 commit 8cebae2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/client/layout/LocaleButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,15 @@ export default function LocaleButton() {
variant="text"
color="inherit"
size="small"
onClick={changeLang(router.locale === 'bg' ? 'en' : 'bg')}>
onClick={changeLang(router.locale === 'bg' ? 'en' : 'bg')}
sx={(theme) => ({
[theme.breakpoints.down('md')]: {
'&:hover': {
color: 'rgb(40, 135, 203)',
backgroundColor: 'transparent',
},
},
})}>
{t(router.locale === 'bg' ? 'EN' : 'BG')}
</Button>
)
Expand Down

0 comments on commit 8cebae2

Please sign in to comment.