angular / angular/components

MatFormField hint and error alignment wrong when using a matPrefix icon

Đang mở
#11,803 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
area: material/form-field material spec P3
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ả

#### Bug, feature request, or proposal:
Bug

#### What is the expected behavior?
Hint and error text are horizontally aligned with input text and both are indented if a matPrefix icon is present.

#### What is the current behavior?
The hint and error text are never indented when matPrefix is used.

#### What are the steps to reproduce?
https://stackblitz.com/edit/angular-h1lpum?embed=1&file=app/form-field-appearance-example.html

#### What is the use-case or motivation for changing an existing behavior?
Material Design guidelines are not being followed.

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 6.0.5, Angular Material 6.2.1

#### Is there anything else we should know?
The alignment spec is not explicitly mentioned, but the anatomy diagram is clear: https://material.io/design/components/text-fields.html#anatomy.

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

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

Hướng nghiên cứu

Bắt đầu với bản tái hiện StackBlitz được liên kết và kiểm tra hành vi của mat-form-field khi có biểu tượng matPrefix. Được xem là hoàn tất khi văn bản gợi ý và văn bản lỗi được căn theo chiều ngang với văn bản đầu vào và được thụt lề nhất quán với tiền tố, đồng thời vẫn giữ nguyên hành vi hiện có của trường biểu mẫu.

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
Khá rõ ràng
Mức phù hợp với người mới
38/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.