-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Native RadioTile validation sub-optimal #10343
Comments
As I found out, validation messages can also be top-aligned (Safari). So if this is implemented, that should be taken into consideration. |
I think this part has been fixed, the other issue though remains to my knowledge |
Hey @brunnerh
Above issue has been fixed by PR I can't reproduce the other issue, and I didn't encounter any errors popup in the CodeSandbox link provided with the bug report. Also, based on the screenshots provided in the bug(Attached above this as well), it seems that the observed behavior is related to
Could you confirm this or further help with a CodeSandbox that reproduces this issue with |
This is about I updated the link. |
In v11, native validation is completely broken in the React package, because carbon/packages/react/src/components/RadioTile/RadioTile.tsx Lines 144 to 156 in 0376df7
|
Hey @brunnerh Thanks for quick response, we are looking into this. |
@2nikhiltom |
@brunnerh |
…on-design-system#10343) * feat(dropdown): syncing dropdown react v11 * feat(combo-box): syncing with react v11 --------- Co-authored-by: kennylam <[email protected]>
Package
carbon-components, carbon-components-react
Browser
Chrome
Package version
v10.50.0
React version
v7.50.0
Description
Currently there are two issues when making a
RadioTile
selection required with native form validation:required
attribute has to be specified on everyRadioTile
(in React at least) instead of on theTileGroup
The radio should probably be at the bottom middle of the tile or the group as a whole like this:
Additions for this example:
CodeSandbox example
https://codesandbox.io/p/sandbox/required-tile-group-q33x2q
Steps to reproduce
TileGroup
with requiredRadioTiles
to a form.Code of Conduct
The text was updated successfully, but these errors were encountered: