Skip to content

Commit

Permalink
Change the shadow of the cards on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
csouchet committed Jul 7, 2023
1 parent 3d20565 commit 38f0d1a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/assets/theme/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ export { MuiContainer } from './muiContainer';
export { MuiIcon } from './muiIcon';
export { MuiSvgIcon } from './muiSvgIcon';
export { MuiLink } from './muiLink';
export { MuiCard } from './muiCard';
27 changes: 27 additions & 0 deletions src/assets/theme/components/muiCard.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
* Copyright 2022 Bonitasoft S.A.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { Components, Theme } from '@mui/material';

export const MuiCard: Components<Theme>['MuiCard'] = {
styleOverrides: {
root: {
':hover': {
boxShadow: '0 12px 16px rgba(0, 0, 0, 0.2)',
},
},
},
};
2 changes: 2 additions & 0 deletions src/assets/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ import {
MuiIcon,
MuiSvgIcon,
MuiLink,
MuiCard,
} from './components';

const generatedTheme = createTheme({
Expand All @@ -65,6 +66,7 @@ const generatedTheme = createTheme({
MuiSvgIcon,
MuiLink,
MuiContainer,
MuiCard,
},
});

Expand Down

0 comments on commit 38f0d1a

Please sign in to comment.