Skip to content

Commit

Permalink
Make sure that language bar buttons do not get selected on smartphone…
Browse files Browse the repository at this point in the history
… taps
  • Loading branch information
HildoBijl committed Feb 9, 2024
1 parent 270975f commit 64b0acb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/ui/pages/Home/parts/LanguageBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { makeStyles } from '@material-ui/core/styles'
import Container from '@material-ui/core/Container'

import { useLanguage, useSetLanguage } from 'i18n'
import { notSelectable } from 'ui/theme'

const useStyles = makeStyles((theme) => ({
languageBar: {
Expand All @@ -12,6 +13,7 @@ const useStyles = makeStyles((theme) => ({
flexDirection: 'row-reverse',
},
flagContainer: {
...notSelectable,
background: 'black',
cursor: ({ active }) => active ? 'default' : 'pointer',
opacity: ({ active }) => active ? 1 : 0.5,
Expand Down

0 comments on commit 64b0acb

Please sign in to comment.