ionic-team / ionic-team/ionic-framework

[Ionic 4.5.0] ion-button lost background focused & activated Custom Properties colors

未关闭
#18,534 8 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
package: core type: bug
主要语言
TypeScript
星标
52.7k
派生
13.3k
平均合并
1 天 15 小时
30 天内合并 PR
51

描述

# Bug Report

**Ionic version:**

[x] **4.5.0**

Ionic/angular - focused and activated button states now always show `--ion-color-primary` regardless of the button css properties.

Adding `fill="clear"` adds transparency but still not using the `--background-focused` of the css (this trick used to work in the past)

**Ionic info:**

Ionic CLI : 5.0.1 (C:\Users\jo\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.5.0
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.3.9
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1

Utility:

cordova-res : 0.3.0
native-run : 0.2.4

System:

NodeJS : v10.15.3 (F:\Program Files\nodejs\node.exe)
npm : 6.4.1
OS : Windows 10

贡献指南

打开贡献指南

调研方向

Reproduce the issue with Ionic 4.5.0 using an ion-button and custom color properties, including the fill="clear" case. Start by tracing the ion-button component styles and verify that focused and activated states honor --background-focused and the configured color rather than always using --ion-color-primary.

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, css, typescript
领域
frontend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

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