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

[Menu] context menu background color is strange

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

@pekingme is already working on this.

Since Jan 8, 2024.

bug Feature: Color
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

**Description:** The context menu background color is strange.
(MenuMainDemoFragment)
![Screenshot_20231231_102408](https://github.com/material-components/material-components-android/assets/71050561/97cdfab1-92eb-4791-b4e2-0c41676ce9b8)
The context menu background color will be correct if some preferences are changed.
![Screenshot_20231231_102527](https://github.com/material-components/material-components-android/assets/71050561/02d93c00-5104-429a-a272-0a99dddc65da)
(Test2)
![Screenshot_20240108_221911](https://github.com/material-components/material-components-android/assets/71050561/07db7a08-96d6-4681-ab90-d73ff19b71c4)
The context menu background color will be correct if the activity is recreated.
![Screenshot_20240108_221921](https://github.com/material-components/material-components-android/assets/71050561/76a219ac-ee00-4b09-90d4-4a4d3b8c0f82)

**Expected behavior:** The context menu background color is correct.

**Minimal sample app repro:** Catalog app (MenuMainDemoFragment) and [Test2.zip](https://github.com/material-components/material-components-android/files/13861043/Test2.zip)

**Android API version:** 34

**Material Library version:** 1.12.0-alpha02

**Device:** Emulator 32.1.15 (API 32, 33, and 34)

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.