Inputs and badges #2505
-
Hi again! This is a little related to my other discussion I posted, but thought this could be one on its own. I understand there isn't a pattern for inputs to have a badges inside and it would be difficult code it there. I have been talking to my engineering team and we were wondering if it would be within best practices to have the badge on top of the input. For my scenario, the badge is tightly coupled with the information displayed in the read only input. The badge relates to the Messaging Service we want the customer to choose and based on our testing, the recommended badge highly influenced the user's decision. We are iterating on the designs from testing and incorporating the badge is slightly different now. I did some explorations of where the badge could display outside the input, but I'm afraid it might lose its intended context. This is what I was hoping/trying to achieve: Here are some other explorations I am considering (left side is first choice after above): I would love to hear feedback or other approaches! Thank you so much. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @jkiga! Great question, thanks for starting a new thread on it! First, wanted to confirm that it just isn't possible to put a Badge inside of Input. We use the native html input element for our Input component and the only thing that it takes as a value is a string. I definitely understand what you mean by not wanting the context of "Recommended" to get lost. I'll gather the team's thoughts on your examples (thanks for providing them!) and get back to you real soon. |
Beta Was this translation helpful? Give feedback.
Hi @jkiga! Great question, thanks for starting a new thread on it!
First, wanted to confirm that it just isn't possible to put a Badge inside of Input. We use the native html input element for our Input component and the only thing that it takes as a value is a string.
I definitely understand what you mean by not wanting the context of "Recommended" to get lost. I'll gather the team's thoughts on your examples (thanks for providing them!) and get back to you real soon.