codegouvfr / codegouvfr/react-dsfr

MUI x DSFR : Checkbox @mui disabled = bug d'affichage

Đang mở
#369 5 bình luận 0 reaction 1 người được giao Được @enguerranws nhận Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
496
Fork
99
Merge trung bình
15 giờ 36 phút
Pull request đã merge (30 ngày)
4

Mô tả

Bonjour,

Je ne sais pas trop si cette issue est un problème de React DSFR ou du DSFR, mais lorsque j'utilise la Checkbox d'MUI et que je définis `disabled={true}`, la checkbox obtient une sorte d'ombre deux fois plus grande qu'elle-même par dessus, ce qui n'est pas agréable pour l'utilisateur.

Le problème ne se produit pas avec une simple balise input HTML, donc je suppose qu'il y a un problème avec le provider MUI du DSFR.

Illustration :

![Image](https://github.com/user-attachments/assets/7c3dbdf6-2f0b-4b48-8aad-f09ff659ccb1)
` `

![Image](https://github.com/user-attachments/assets/f26a69c4-ae2d-4c42-bb3c-9c7d0babcca6)
` `

Le CSS qui affecte MUI est, d'après mon navigateur :
inline:2218
```css
/**
* Override de l'opacité chrome sur un élément disabled
*/
a:not([href]),
button:disabled,
input:disabled,
input[type=checkbox]:disabled,
input[type=checkbox]:disabled + label,
input[type=radio]:disabled,
input[type=radio]:disabled + label,
textarea:disabled,
video:not([href]),
audio:not([href]) {
opacity: 1;
color: var(--text-disabled-grey);
}
```

Merci pour votre aide.

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

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

Đánh giá

Issue này chưa được đánh giá.

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.