material-components / material-components/material-web
md-list-item: text is not selectable
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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