material-components / material-components/material-web

md-list-item: text is not selectable

Open
#5,394 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
SCSS
Stars
11.3k
Forks
1.1k
Avg merge
20h 28m
Merged PRs (30d)
13

Description

What is affected?

Component

Description

As reported in #5145 for md-dialog, even for md-list-item the text is not selectable.
Text in a list in a web page should always be selectable, it's an expected behavior

Reproduction

try to select text in a list in https://material-web.dev/components/list/

Workaround

I'm using an inside md-list-item to make text selectable

Is this a regression?

No or unsure. This never worked, or I haven't tried before.

Affected versions

Failing in 1.1.1

Browser/OS/Node environment

Browser: Chrome 120.0.6099.217

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 reproducing the selection problem in the md-list-item component at https://material-web.dev/components/list/ using Chrome. Inspect the component's text-selection behavior and compare it with the expected behavior described in the issue. Done means text in a list item can be selected normally without requiring an input workaround.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
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.