Skip to content

Commit

Permalink
White tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
freost committed Dec 3, 2023
1 parent a04e68d commit 590d04f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
14 changes: 10 additions & 4 deletions gallery/src/components/FabExample.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Autocomplete, Button, Fab, Grid, Paper, Popper, Stack, styled, TextField, Typography } from "@mui/material"
import { Autocomplete, Button, Fab, Grid, Paper, Popper, Stack, styled, TextField, Tooltip, Typography } from "@mui/material"
import { useRef, useState } from "react"
import { ArrowDropDown } from "@mui/icons-material"

Expand All @@ -20,7 +20,9 @@ export const FabExample = () => {
<InnerPaper variant="padded">
<Fab variant="extended">Enabled</Fab>
&nbsp;
<Fab>E</Fab>
<Tooltip title="Tooltip">
<Fab>E</Fab>
</Tooltip>
&nbsp;
<Fab variant="extended" disabled>
Disabled
Expand All @@ -37,7 +39,9 @@ export const FabExample = () => {
Enabled
</Fab>
&nbsp;
<Fab color="secondary">E</Fab>
<Tooltip title="Tooltip">
<Fab color="secondary">E</Fab>
</Tooltip>
&nbsp;
<Fab variant="extended" color="secondary" disabled>
Disabled
Expand All @@ -56,7 +60,9 @@ export const FabExample = () => {
Enabled
</Fab>
&nbsp;
<Fab color="secondaryResult">E</Fab>
<Tooltip title="Tooltip">
<Fab color="secondaryResult">E</Fab>
</Tooltip>
&nbsp;
<Fab variant="extended" color="secondaryResult" disabled>
Disabled
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@digitalarkivet/mui-theme",
"version": "2.0.0-alpha12",
"version": "2.0.0-alpha13",
"description": "MUI themes for Digitalarkivet applications",
"private": false,
"main": "dist/main.js",
Expand Down
10 changes: 10 additions & 0 deletions src/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,16 @@ const theme = createTheme(
},
},
},
MuiTooltip: {
styleOverrides: {
tooltip: {
backgroundColor: themeColors.palette.background.content,
color: themeColors.palette.text.primary,
fontSize: themeTypography.typography.fontSize12,
boxShadow: '0px 8px 20px 5px rgba(0,0,0,0.1)',
},
},
},
},
},
themeColors,
Expand Down

0 comments on commit 590d04f

Please sign in to comment.