callstack / callstack/react-native-paper

RadionButton doesn't seem to implement MD3

Aperta
#4,279 1 commento 1 reazione 0 assegnatari Vedi su GitHub
bug RadioButton
Lingua principale
TypeScript
Stelle
14.5k
Fork
2.2k
Merge medio
5g 23h
PR unite (30g)
12

Descrizione

### 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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.