angular / angular/components

[FormField] Add option to allow hint to be shown only when focused

Đang mở
#8,958 3 bình luận 2 reaction 0 người được giao Xem trên GitHub
area: material/form-field feature 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:
Feature request

#### What is the expected behavior?
When the option is specified, the hint/helper text is hidden unless the field has focus.

#### What is the current behavior?
The hint is always displayed unless no hint is used

#### What is the use-case or motivation for changing an existing behavior?
Material Design specifications call for the hint to be either always displayed or displayed on focus only: https://material.io/guidelines/components/text-fields.html#text-fields-layout (see 'Helper text').

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

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

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

Hướng nghiên cứu

Bắt đầu từ phần triển khai Angular Material FormField và theo dõi cách văn bản gợi ý/trợ giúp hiện đang được kết xuất. Xác nhận các trạng thái có tiêu điểm và không có tiêu điểm mà tùy chọn được kỳ vọng có, sau đó kiểm tra rằng gợi ý bị ẩn khi không có tiêu điểm và vẫn hiển thị khi có tiêu điểm.

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
Tính năng
Độ 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
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.