Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const styles = {
marginRight: 3,
},
withTooltip: {
zIndex: 3,
position: 'relative',
},
};
Expand All @@ -21,6 +20,7 @@ const UnpublishedIcon = ({ tooltipId }) => {
return (
<Block
data-tooltip-id={tooltipId}
className="z-badge"
style={{ ...styles.unpublishedIcon, ...styles.withTooltip }}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ const styles = {
position: 'absolute',
right: 20,
width: '100%',
zIndex: 999,
},
};

const ZoomActionElements = (props) => {
const { zoomIn, zoomOut } = props;

return (
<div style={styles.wrapper}>
<div className="z-dropdown" style={styles.wrapper}>
<Button
className="btn-submit"
color="primary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ const styles = {
bottom: 0,
position: 'sticky',
textAlign: 'center',
zIndex: 999,
},
};

Expand Down Expand Up @@ -204,7 +203,7 @@ const Dashboard = (props) => {

return (
<>
<Card style={{ ...styles.wrapper, backgroundColor: color }}>
<Card className="z-dropdown" style={{ ...styles.wrapper, backgroundColor: color }}>
<CardContent style={styles.content}>
{text}
{getActionElements()}
Expand Down
3 changes: 1 addition & 2 deletions client/app/lib/components/core/LoadingOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const styles = {
position: 'absolute',
top: 0,
left: 0,
zIndex: 110,
display: 'flex',
width: '100%',
height: '100%',
Expand All @@ -22,7 +21,7 @@ const styles = {

const LoaderOverlay = (): JSX.Element => {
return (
<Box sx={styles.overlay}>
<Box className="z-overlay" sx={styles.overlay}>
<Box style={styles.progressContainer}>
<LoadingIndicator />
</Box>
Expand Down
2 changes: 1 addition & 1 deletion client/app/lib/components/core/NotificationBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ const NotificationBar = (props) => {
message={notificationNode}
onClose={handleClose}
open={open}
className="z-modal"
style={{
height: 'auto',
maxWidth: '100%',
whiteSpace: 'pre-line',
zIndex: 9999,
}}
{...options}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ class ConfirmationDialog extends Component {
? handleDialogClose
: onCancel
}
className="z-modal"
open={open}
style={{ zIndex: 9999 }}
>
<DialogContent>
<Typography variant="body2">{confirmationMessage}</Typography>
Expand Down
8 changes: 8 additions & 0 deletions client/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ export default {
warning: palette.warning.main,
info: palette.info.main,
},
zIndex: {
base: '1',
badge: '3',
sticky: '100',
overlay: '110',
dropdown: '1000',
modal: '9999',
},
},
},
corePlugins: {
Expand Down