Skip to content

Commit 60d4f1c

Browse files
committed
Merge branch 'madeline/fix-conflicting-zindexes'
2 parents 277f9e7 + af3130f commit 60d4f1c

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

src/Lumi/Components/InputGroup.purs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module Lumi.Components.InputGroup where
33
import Data.Array (fromFoldable)
44
import Data.Nullable (Nullable, toMaybe)
55
import JSS (JSS, jss)
6+
import Lumi.Components.ZIndex (ziInputGroup)
67
import React.Basic (Component, JSX, createComponent, element, makeStateless)
78
import React.Basic.DOM (CSS, unsafeCreateDOMComponent)
89
import React.Basic.DOM as R
@@ -43,7 +44,7 @@ styles = jss
4344
, "& a.input-container":
4445
{ flex: "1"
4546
, marginRight: "-1px"
46-
-- , "&:focus, &:hover": { zIndex: "1" }
47+
, "&:focus, &:hover": { zIndex: ziInputGroup }
4748
, "& input[type=\"text\"], & input.lumi[type=\"text\"]":
4849
{ borderRadius: "0"
4950
, width: "100%"
@@ -73,9 +74,9 @@ styles = jss
7374
, borderBottomLeftRadius:"0"
7475
}
7576

76-
-- , "& input-group-addon button.lumi":
77-
-- { "&:focus, &:hover": { zIndex: "1" }
78-
-- }
77+
, "& input-group-addon button.lumi":
78+
{ "&:focus, &:hover": { zIndex: ziInputGroup }
79+
}
7980
}
8081
}
8182
}

src/Lumi/Components/ZIndex.purs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
module Lumi.Components.ZIndex where
22

33
ziButtonGroup :: Int
4-
ziButtonGroup = 100
4+
ziButtonGroup = 1000
55

66
ziDropdownButton :: Int
7-
ziDropdownButton = 100
7+
ziDropdownButton = 1000
88

99
ziInputGroup :: Int
10-
ziInputGroup = 100
10+
ziInputGroup = 1000
1111

1212
ziModal :: Int
13-
ziModal = 1000
13+
ziModal = 10000
1414

1515
ziNavigationBar :: Int
16-
ziNavigationBar = 10
16+
ziNavigationBar = 100
1717

1818
ziNavigationDropdown :: Int
19-
ziNavigationDropdown = 11
19+
ziNavigationDropdown = 101
2020

2121
ziSelect :: Int
22-
ziSelect = 100
22+
ziSelect = 1000
2323

2424
ziTableHeader :: Int
25-
ziTableHeader = 2
25+
ziTableHeader = 12
2626

2727
ziTableHeaderMenu :: Int
28-
ziTableHeaderMenu = 4
28+
ziTableHeaderMenu = 14
2929

3030
ziTableLockedColumn :: Int
31-
ziTableLockedColumn = 1
31+
ziTableLockedColumn = 11
3232

3333
ziTableLockedColumnHeader :: Int
34-
ziTableLockedColumnHeader = 3
34+
ziTableLockedColumnHeader = 13
3535

3636
ziToast :: Int
37-
ziToast = 10000
37+
ziToast = 100000
3838

3939
ziTooltip :: Int
40-
ziTooltip = 100000
40+
ziTooltip = 1000000

0 commit comments

Comments
 (0)