Skip to content

Commit

Permalink
added z-index to fab component mui#30615
Browse files Browse the repository at this point in the history
  • Loading branch information
issamElmohadeb098 committed Jan 30, 2022
1 parent f1840b9 commit 0e9f5e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/mui-material/src/Fab/Fab.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const FabRoot = styled(ButtonBase, {
minWidth: 0,
width: 56,
height: 56,
zIndex: theme.zIndex.fab,
boxShadow: theme.shadows[6],
'&:active': {
boxShadow: theme.shadows[12],
Expand Down
1 change: 1 addition & 0 deletions packages/mui-material/src/styles/zIndex.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export interface ZIndex {
modal: number;
snackbar: number;
tooltip: number;
fab: number;
}

export type ZIndexOptions = Partial<ZIndex>;
Expand Down
1 change: 1 addition & 0 deletions packages/mui-material/src/styles/zIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const zIndex = {
modal: 1300,
snackbar: 1400,
tooltip: 1500,
fab: 1050,
};

export default zIndex;

0 comments on commit 0e9f5e5

Please sign in to comment.