-
Notifications
You must be signed in to change notification settings - Fork 520
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5929 from blockchain/GROWUX-1112
fix(kyc): dropdown fields now don't overlap with inputs
- Loading branch information
Showing
2 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
11 changes: 6 additions & 5 deletions
11
packages/blockchain-wallet-v4-frontend/src/components/Form/FormItem/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
import React from 'react' | ||
import styled from 'styled-components' | ||
|
||
// Z-INDEX because otherwise the dropdown menu will be behind other inputs when present | ||
const Wrapper = styled.div` | ||
position: relative; | ||
width: ${(props) => props.width || '100%'}; | ||
` | ||
const FormGroup = (props) => { | ||
const { children, ...rest } = props | ||
div.bc__menu { | ||
z-index: 900; | ||
} | ||
` | ||
|
||
return <Wrapper {...rest}>{children}</Wrapper> | ||
} | ||
const FormGroup = ({ children, ...rest }) => <Wrapper {...rest}>{children}</Wrapper> | ||
|
||
export default FormGroup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters