Checkbox Disclaimer #4019
-
We (@davidbarrios-dev and other PN team members) are working on a wizard design for a new Phone Numbers self-service feature this quarter. We encountered an issue with the Checkbox Disclaimer component documented in the Paste UI Kit: Paste Components & Themes. Upon review, David noticed that this component does not currently support the helper text variant, which is included in the UI Kit. We’re unsure if this is a bug or an oversight. Could you please help us figure out how to implement the helper text variant, or let us know if there is an alternative solution? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Disclaimer: This is a very experimental bot using OpenAI's GPT-4. The answers may not be correct, a human will review the answer and update it if necessary. Sorry, I don't know how to help with that. I did do a search though, and I managed to find these other Discussions that might be similar or related to your question. Give them a read to see if they answer your question. If they do, head back here and update this discussion and mark it as answered, pointing others to the related discussion:
|
Beta Was this translation helpful? Give feedback.
-
Hi @dfcontreras10, thanks for reaching out. This is the intended behavior when using the disclaimer instance of checkbox. The disclaimer text should be descriptive enough to not require any help text. We do however have a prop Usage is in this storybook and the code can be found here. Were you looking for this instead of help text? |
Beta Was this translation helpful? Give feedback.
Thanks @dfcontreras10 for clarifying. I dug into our code and I see that the helpText prop is being specifically omitted here. I raised this with the team and we are not sure why we did that so I'm going to expose this to get rid of any type errors.
This fix will be included in our next release. In the meantime setting the prop will actually be passed through and rendered correctly so you engineers can just add the following above the prop to ignore the type issue
@ts-expect-error helpText is not a valid prop
.Just for our curoisity would you mind sharing the use case with @serifluous. Thank you!