@dtdot/lego 2.0.0-39 → 2.0.0-40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,6 +4,7 @@ import { motion } from 'framer-motion';
4
4
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
5
5
  import getThemeVariantColours from '../../theme/helpers/getThemeVariantColours';
6
6
  import MinimalMenuContext from '../MinimalMenu/MinimalMenu.context';
7
+ import zIndexConstants from '../../constants/zIndex.constants';
7
8
  const FloatingButton = styled(motion.button) `
8
9
  position: fixed;
9
10
  bottom: ${(props) => (props.offsetBottom ? '76px' : '20px')};
@@ -21,7 +22,7 @@ const FloatingButton = styled(motion.button) `
21
22
  align-items: center;
22
23
  font-size: 24px;
23
24
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
24
- z-index: 999;
25
+ z-index: ${zIndexConstants.floatingActionButton};
25
26
 
26
27
  &:hover {
27
28
  background-color: ${(props) => getThemeVariantColours(props.variant, props.theme).darker};
@@ -1,4 +1,5 @@
1
1
  declare const _default: {
2
+ floatingActionButton: number;
2
3
  modalOverlay: number;
3
4
  modalContent: number;
4
5
  notifications: number;
@@ -1,4 +1,5 @@
1
1
  export default {
2
+ floatingActionButton: 5,
2
3
  modalOverlay: 100,
3
4
  modalContent: 110,
4
5
  notifications: 120,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dtdot/lego",
3
- "version": "2.0.0-39",
3
+ "version": "2.0.0-40",
4
4
  "description": "Some reusable components for building my applications",
5
5
  "main": "build/index.js",
6
6
  "scripts": {