material-components / material-components/material-components-android
[MaterialButton] Background color different on short & long click
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description:** Full description of issue here
The background color of `MaterialButton` (using `@style/Widget.MaterialComponents.Button.OutlinedButton`) on short-click and long-click is different
On short click:

On long click

**Expected behavior:** Screenshots and/or description of expected behavior
The background color should be the same for long click and short click, or an option should be there to have them look the same
**Source code:** The code snippet which is causing this issue
```xml
```
**Android API version:** The device was running android v7.1.2
**Material Library version:** `com.google.android.material:material:1.8.0`
**Device:** model is a5dwg
Contributor guide
Research direction
Start by reproducing the behavior with the provided MaterialButton XML, using the OutlinedButton style on Android 7.1.2 and material version 1.8.0. Compare the short-click and long-click states, then confirm that the background color is consistent or that an option exists to make the states match.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100