angular / angular/components

Label for mat-form-field is overlapping with mat-icon in mat-tab.

Đang mở
#26,428 24 bình luận 28 reaction 0 người được giao Xem trên GitHub
area: many area: material/tabs P4
Ngôn ngữ chính
TypeScript
Star
25k
Fork
6.8k
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
91

Mô tả

### Is this a regression?

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

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

14

### Description

Label is overlapping with icon.

- When using in 2nd Tab of Tabgroup, surrounded with a e.g. a div, p, ...
- and
- When using the the mat-form-field with appearance "outline" and an icon with matPrefix.

```



Outline form field

sentiment_very_satisfied
Hint


```

### Reproduction

Steps to reproduce:
1. add to app.module
import { MatInputModule } from '@angular/material/input';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatTabsModule } from '@angular/material/tabs';

2. add to app.component
```




Outline form field

sentiment_very_satisfied
Hint






Outline form field

sentiment_very_satisfied
Hint



#
```
3.
for the input field in 2nd tab : label is overlapping with mat-icon
4.
when inspecting the style, it seems the X transform is not correct

![tabs](https://user-images.githubusercontent.com/8170828/212326383-c7770735-0201-459b-bcc6-1489abcefdaa.png)

### Expected Behavior

Label should have correct margin

### Actual Behavior

Label is overlapping with mat-icon

### Environment

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện ví dụ Angular Material được cung cấp với một outlined mat-form-field, biểu tượng matPrefix và mat-tab thứ hai, sau đó kiểm tra các style biến đổi của label được nêu trong báo cáo. Công việc được hoàn thành khi label có margin chính xác và không còn chồng lên mat-icon trong tab thứ hai, đồng thời vẫn giữ nguyên hành vi của tab thứ nhất.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
frontend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.