openui / openui/open-ui

[select] Select options overlapping fixed navbar

Open
#1,204 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs-triage
Dominant language
MDX
Stars
4.5k
Forks
226
Avg merge
2d 22h
Merged PRs (30d)
4

Description

As the select options appear in the #top-layer, this means that customisable select options appear above a position fixed navbar. If the user say opens a customizable select, then scrolls the page so the navbar and select options overlap. This is an issue for customizable selects as scrolling the page does not remove focus, unlike standard selects.

This seems to be an unfortunate side effect of using #top-layer, and as a developer I see two options:

  1. Just tolerate it.
  2. Implement a way to remove the options from the #top-layer when a scroll event occurs.

Regarding option 2 I implemented a solution using event listeners and DOM manipulation. This works, but it's rather unwieldy. An equivalent to hidePopover() for customisable selects would be useful here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository file, test, or entry point is named. Start by reading the issue’s discussion of the #top-layer, customizable selects, and hidePopover() comparison; completion would require a decided behavior or API plus corresponding standards tests, but the scope is not defined here.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.