Open sandhose opened 1 year ago
I think we should use radix for all of them or none of them (and use
</Form.Control> for example?)
I'm not sure if this has been discussed elsewhere, but I think we should use Radix for all of them. Ideally, we should use Radix for as much as possible.
I think we should use radix for all of them or none of them (and use
</Form.Control> for example?) I'm not sure if this has been discussed elsewhere, but I think we should use Radix for all of them. Ideally, we should use Radix for as much as possible.
With the right ref forwarding, it's possible to provide both a bare input and a radix control. Check out what I did in the PR here: https://github.com/vector-im/compound-web/blob/7fc69ca21e3472dc938c7bc93be919c27209614e/src/components/Form/Controls/Text/Text.tsx#L34
It also makes it easier to do stories if we have an input component which is not controlled by radix
It also makes it easier to do stories if we have an input component which is not controlled by radix
How so? What are the benefits to using an input without Radix? I thought we get a lot of accessibility built in using Radix
While working on the readonly state on forms and the MFA component, I noticed that the form-related components are weirdly organised and don't always have the best implementation. Sorry for the "brain-dump" style list, I can open individual issues if needed.
Form
object, so that markup like this is possible:<Form.Root>
should have sensible default gap and flexbox.--cpd-space-5x
looks like a good default candidateStandaloneActionControl
doesn't make sense?0.9375rem
whereas it should really be1rem
ValidityState
redefines a component which doesn't add anything, and really should just be a re-export from RadixMessage
component doesn't implement the "error message" styling. I think we should do distinctHelpMessage
andErrorMessage
componentsform
folderRadio
andCheckbox
aren't using radixMFAControl
,ActionControl
,PasswordControl
are using radix<Form.Control asChild><Password /></Form.Control>
for example?)