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

fix: make filter menu stack over the links #232

Merged
Merged
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
10 changes: 5 additions & 5 deletions publish-frontend/src/pages/posts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default function IndexPage({ posts, users, tags, user }) {
position='sticky'
top='0'
bgColor='gray.200'
zIndex={2}
zIndex={3}
>
<Heading>Posts</Heading>
<Spacer />
Expand All @@ -140,7 +140,7 @@ export default function IndexPage({ posts, users, tags, user }) {
>
<Menu>
<FilterButton text='All posts' />
<MenuList>
<MenuList zIndex={2}>
<MenuOptionGroup defaultValue='all' type='radio'>
<MenuItemOption value='all'>All posts</MenuItemOption>
<MenuItemOption value='drafts'>Drafts posts</MenuItemOption>
Expand All @@ -152,7 +152,7 @@ export default function IndexPage({ posts, users, tags, user }) {
</Menu>
<Menu>
<FilterButton text='All authors' />
<MenuList>
<MenuList zIndex={2}>
<MenuOptionGroup defaultValue='all' type='radio'>
<MenuItemOption value='all'>All authors</MenuItemOption>
{users.map(user => (
Expand All @@ -165,7 +165,7 @@ export default function IndexPage({ posts, users, tags, user }) {
</Menu>
<Menu>
<FilterButton text='All tags' />
<MenuList>
<MenuList zIndex={2}>
<MenuOptionGroup defaultValue='all' type='radio'>
<MenuItemOption value='all'>All tags</MenuItemOption>
{tags.data.map(tag => (
Expand All @@ -178,7 +178,7 @@ export default function IndexPage({ posts, users, tags, user }) {
</Menu>
<Menu>
<FilterButton text='Sort by: Newest' />
<MenuList>
<MenuList zIndex={2}>
<MenuOptionGroup defaultValue='newest' type='radio'>
<MenuItemOption value='newest'>Newsest</MenuItemOption>
<MenuItemOption value='oldest'>Oldest</MenuItemOption>
Expand Down
Loading