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

[BottomSheetDragHandleView] Background colour incorrect

Open
#3,269 4 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

bug Issue: Design Widget: BottomSheet
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

### Description

Bottom sheet drag handle appears far darker than the Material 3 design docs.

![image](https://user-images.githubusercontent.com/151842/221592114-6c297589-94f2-454e-a68a-f3ef2b8487b9.png)

### Docs
image

### Specs
image

I looks like the 40% alpha is missing for the MDC Android implementation. Changing the default style fixes it.

```xml
@style/Widget.Xxx.BottomSheet.DragHandle
...

<!-- Matches specs -->
<item name="android:alpha">0.4</item>

```

### Code
https://github.com/material-components/material-components-android/blob/4046525b20ff81c4f4fef654b9e8f09ffd7f5a81/lib/java/com/google/android/material/bottomsheet/res/values/styles.xml#L92

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.