callstack / callstack/react-native-paper

RadionButton doesn't seem to implement MD3

Đang mở
#4,279 1 bình luận 1 reaction 0 người được giao Xem trên GitHub
bug RadioButton
Ngôn ngữ chính
TypeScript
Star
14.5k
Fork
2.2k
Merge trung bình
5 ngày 23 giờ
Pull request đã merge (30 ngày)
12

Mô tả

### Current behaviour
According to the MD3 spec (https://m3.material.io/components/radio-button/guidelines), `RadioButton` should have a different look-n-feel than it currently does. For example, in "leading" mode the label should follow the button after some margin but instead its right-aligned towards then end of the screen:

```tsx

```

### Expected behaviour

`RadioButton` should match the MD3 spec.

### How to reproduce?

Just use `RadioButton` and compare it to the MD3 spec.

### Preview

![Screenshot_1705410465](https://github.com/callstack/react-native-paper/assets/17277/5e083530-ec90-47d3-a3b4-08723d4de4b1)

### What have you tried so far?

Tried different combinations of `RadioButton.Group`, `RadioButton`, and `RadioButton.Android`.

### Your Environment

| software | version
| --------------------- | -------
| ios | x
| android | x
| react-native | 0.71.14
| react-native-paper | 5.11.4
| node | 18.16.1
| npm. | 9.5.1
| expo sdk | not used

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 các entry point RadioButton, RadioButton.Group, RadioButton.Item và RadioButton.Android, sau đó so sánh cách render hiện tại của chúng với các hướng dẫn về radio button của Material 3 được liên kết. Kiểm tra việc căn chỉnh nhãn ở vị trí đầu và các khác biệt trực quan khác được ghi lại giữa các biến thể được hỗ trợ; hoàn tất khi RadioButton khớp với hành vi MD3 được tham chiế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ệ
react-native, typescript
Lĩnh vực
design, frontend, mobile
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/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.