We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d0f0fc4 + 78b3cc7 commit 315bff3Copy full SHA for 315bff3
components/language-chooser/react/language-chooser-react-mui/src/OptionCard.tsx
@@ -35,12 +35,20 @@ export const OptionCard: React.FunctionComponent<
35
<CardActionArea
36
onClick={onClick || (() => undefined)}
37
className={`option-card-button ${isSelected && "selected-option-card-button"} ${className}`}
38
+ css={css`
39
+ display: flex;
40
+ flex-direction: column;
41
+ `}
42
>
43
<Card
44
variant="outlined"
45
css={css`
46
position: relative; // so children can be positioned absolutely
47
box-shadow: ${theme.palette.grey[400]} 0px 3px 5px;
48
+
49
+ // fill up the entire card action area
50
+ flex-grow: 1;
51
+ width: 100%;
52
`}
53
sx={{
54
bgcolor: `${backgroundColor}`,
0 commit comments