openedx / openedx/paragon

Control the maximum number of items displayed in the Dropdown menu

Open
#3,133 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
140
Forks
100
Avg merge
1h 3m
Merged PRs (30d)
30

Description

Dropdown menu now displays all items at once. Therefore, the list may go beyond the screen.

Screenshot 2024-07-12 at 16 27 44

I suggest adding new prop dropdownItemsLimit or maxDropdownItems, as example, that will indicate the maximum number of items that will be displayed in the dropdown menu at once.

As an alternative, it is possible to specify the default maximum height of the menu, as for example in the SelectMenu component

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

Start with the Dropdown component's basic-usage documentation and compare the SelectMenu component's theme variables, both linked in the issue. Decide whether a maximum item count or menu height best fits the existing API, then document and verify that long Dropdown lists remain usable without extending beyond the screen.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.