ionic-team / ionic-team/ionic-framework

bug: Dark Theme: Toolbar and item-background colors doesn't follow the MD

未关闭
#30,741 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
triage
主要语言
TypeScript
星标
52.7k
派生
13.3k
平均合并
1 天 15 小时
30 天内合并 PR
51

描述

# Bug Report

**Ionic version:**
[x] 5.x

**Current behavior:**

1. The toolbar on MD uses `--ion-background-color: #121212`.
2. The value of `--ion-item-background` is `#1A1B1E`

![dark_theme_before](https://user-images.githubusercontent.com/16899197/77822775-e5f4f580-7106-11ea-8e68-e4e4eeb1e100.PNG)
**Expected behavior:**

Based on [MD documentation](https://material.io/design/color/dark-theme.html)
1. The toolbar on MD should use `--ion-item-background` instead of `--ion-background-color: #121212`.
2. The value of `--ion-item-background` should be `#1d1d1d` instead of `#1A1B1E`

![dark_theme_after](https://user-images.githubusercontent.com/16899197/77822778-e8574f80-7106-11ea-9f45-3885d306843f.PNG)

**Steps to reproduce:**
Check the MD CSS provided in **Ionic Dark Theme** section from this [Ionic Documentation](https://ionicframework.com/docs/theming/dark-mode)

Thanks.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。