Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing filter tab overlapping with the top nav bar when hovered #6223

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
13 changes: 3 additions & 10 deletions src/sections/Community/Members-grid/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Select from "react-select";
import { Container } from "../../../reusecore/Layout";
import PageHeader from "../../../reusecore/PageHeader";
import { selectStyles, dropdownTheme } from "./membersGrid.style";
import { FilterWrapper } from "./membersGrid.style";

const Dropdown = (props) => {
return (
Expand All @@ -17,14 +18,7 @@ const Dropdown = (props) => {
subtitle="A warm and welcoming collection of open sourcers"
/>
<Container>
<div
style={{
display: "flex",
alignItems: "center",
justifyContent: "flex-end",
width: "100%",
}}
>
<FilterWrapper>
<Select
name="Filter Members"
defaultValue={[props.defaultOption]}
Expand All @@ -36,8 +30,7 @@ const Dropdown = (props) => {
theme={dropdownTheme}
isMulti
/>
</div>

</FilterWrapper>
<br />
</Container>
</>
Expand Down
9 changes: 9 additions & 0 deletions src/sections/Community/Members-grid/membersGrid.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,3 +240,12 @@ export const MembersGridWrapper = styled.div`
}
}
`;

export const FilterWrapper = styled.div`
display: flex;
position: relative;
align-items: center;
justify-content: flex-end;
width: 100%;
z-index: 100
`;