Skip to content

Commit c962a35

Browse files
committed
fix(prebuilt): multiple-choice poll questions should be visible
1 parent 569b73a commit c962a35

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/roomkit-react/src/Checkbox/Checkbox.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ const CheckboxRoot = styled(CheckboxPrimitive.Root, {
2525

2626
const CheckboxIndicator = styled(CheckboxPrimitive.Indicator, {
2727
color: '$on_primary_high',
28+
// center check svg within button box
29+
lineHeight: 0,
2830
});
2931

3032
export const Checkbox = {

packages/roomkit-react/src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ export const MultipleChoiceOptions = ({
6060
<Flex direction="column" css={{ flexGrow: '1' }}>
6161
<Flex css={{ w: '100%' }}>
6262
<Text css={{ display: 'flex', flexGrow: '1' }}>
63-
<Label htmlFor={`${questionIndex}-${option.index}`}>{option.text}</Label>
63+
<Label htmlFor={`${questionIndex}-${option.index}`} css={{ color: 'inherit' }}>
64+
{option.text}
65+
</Label>
6466
</Text>
6567
{showVoteCount && <VoteCount voteCount={option.voteCount} />}
6668
</Flex>

0 commit comments

Comments
 (0)