material-components / material-components/material-components-android

[Slider] Hide dots instead of limiting the number

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

Nobody has claimed this yet.

Awaiting Design Feedback feature request Widget: Slider
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

**Description:**
If a discrete slider would display too many dots, the number of dots is reduced. However isn't this against the meaning of the dots?
IMO a dot has the meaning of: This is a slider that you cannot drag to any position, but to this position I (the dot) mark.

**Expected behavior:**
I suggest to check how many dots need to be displayed and if that's too much, hide them instead of limit them.

**Source code:** None needed

**Android API version:** Every

**Material Library version:** 1.2.0-alpha06

**Device:** Every

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 by locating the discrete slider implementation and the entry point that decides how many dots are displayed. Check the existing slider behavior and tests, if present; done means excessive dots are hidden rather than represented by a reduced set, while normal dot display remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.