Skip to content

Commit

Permalink
replicate behaviour on next
Browse files Browse the repository at this point in the history
  • Loading branch information
gwyneplaine committed Oct 9, 2023
1 parent f7d6ed1 commit fd0eaf1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion polaris-react/src/components/Choice/Choice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ export function Choice({
'fill',
// Map "true" => "100%" and "false" => "auto" for use in
// inline/block-size calc()
mapResponsivePropValues(fill, (value) => (value ? '100%' : 'auto')),
mapResponsivePropValues(fill, (value) => {
if (value === undefined) return undefined;
return value ? '100%' : 'auto';
}),
),
} as React.CSSProperties;

Expand Down

0 comments on commit fd0eaf1

Please sign in to comment.