Skip to content

Commit af3130f

Browse files
committed
Fix InputGroup borders on hover (z-index)
1 parent 5d66997 commit af3130f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
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
}

0 commit comments

Comments
 (0)