material-components / material-components/material-web
Buttons are not robust to position:static.
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
Setting `position: static` to button breaks them.
### Without static:

### applying style position:static:

There is a kind of related discussion in #5309 - but I think the situation is different here.
### Reproduction
https://lit.dev/playground/#gist=6cd3dda1b04aa08deb3350ae72b166bc
### Workaround
Wrapping buttons around a `div` with position=static, I guess.
### Is this a regression?
Yes. This used to work, but now it doesn't.
### Affected versions
Failing 1.1.0, working 1.0 I thing
### Browser/OS/Node environment
Linux chrome 120.
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 with the linked Lit Playground reproduction and compare the button behavior between the working 1.0 version and failing 1.1.0 behavior when position: static is applied. Trace the affected button component styles and verify that buttons remain intact under position: static, with a regression check for the reported case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scss
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100