Replies: 4 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.
-
Hey @kkenna3! 👋 I'm here to help you with any bugs, questions, or contributions. Let's tackle this together while we wait for a human maintainer. To make the custom <Box
display="flex"
flexDirection="column"
alignItems="center"
rowGap="space130"
width="100%"
element="CARD_AND_BUTTONS"
>
{/* Your existing theme logic here */}
<Box width="100%">
<RadioButtonGroup
attached
name="themeable-builder"
value={theme}
legend={<ScreenReaderOnly>Component preview theme</ScreenReaderOnly>}
onChange={(newValue) => {
setHasManuallyChangedTheme(true);
selectTheme(newValue as ThemeType);
}}
orientation="horizontal"
>
<RadioButton id={useUID()} value="default">
Default
</RadioButton>
<RadioButton id={useUID()} value="dark">
Dark
</RadioButton>
<RadioButton id={useUID()} value="twilio">
Twilio
</RadioButton>
<RadioButton id={useUID()} value="custom">
Custom
</RadioButton>
</RadioButtonGroup>
</Box>
</Box> By wrapping the |
Beta Was this translation helpful? Give feedback.
-
Hey @kkenna3 and @PabloFNK - sorry for the delayed response on this discussion. Taking a look now! |
Beta Was this translation helpful? Give feedback.
-
You're correct that there's not currently a way to make RadioButtonGroup take up the full width of the parent element (without doing some sketchy calculations). If you're comfortable with the 2nd option, that would be the most straightforward way to go. If you'd like to build something custom to span the full width of the Card, let me know and we can talk about next steps. |
Beta Was this translation helpful? Give feedback.
-
Hi, We are migrating Call Insights to Console.Zen and it was recommended in office hours to use a custom RadioButtonGroup for an interaction we were trying to recreate. A user is able to switch between graphs within a card but also see the average value displayed on the button.
We were trying to make the RadioButtonGroup full width across the card, but the engineer is having difficulties achieving that as it takes the width of the content instead. Is there a way to override it to full width, or should we hug the content?
Figma - what we prefer
Figma - what we're seeing (and okay with if it's recommended)
Beta Was this translation helpful? Give feedback.
All reactions