angular / angular/components

FormField outline border wrong on Google chrome with lower zoom than 100%

未关闭
#24,409 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
area: material/form-field P4
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

### Is this a regression?

- [ ] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

_No response_

### Description

Angular material form field outline gap border is bigger with 1px than mat-form-field-outline-start, mat-form-field-outline-end classes border.

### Reproduction

Steps to reproduce:
1. Open form field outline with google chrome
2. Set zoom to 90%
3. Take hover on form field

### Expected Behavior

Same border width on outline form field.

### Actual Behavior

![form_field_outline](https://user-images.githubusercontent.com/28343464/153829127-f5b3b80c-04a1-4525-a2bf-11b58e3df6d7.png)

### Environment

- Angular: 13.2.2
- CDK/Material: 13.2.2
- Browser(s): Google Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows 10

贡献指南

打开贡献指南

调研方向

在 Windows 10 上使用 Angular Material 13.2.2,以 90% 缩放比例重现 Google Chrome 中 outline 表单字段的行为,然后定位负责 outline gap 及其边框类的实现。完成标准是:在缩小的缩放比例下进行 hover 时,outline gap 与 mat-form-field-outline-start/end 边框具有相同的宽度。

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

评估

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

把新 issue 发到你的邮箱

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