Skip to content

Commit

Permalink
revert change to choice-fill application
Browse files Browse the repository at this point in the history
  • Loading branch information
gwyneplaine committed Oct 9, 2023
1 parent 8eac426 commit 1e4a0f3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions polaris-react/src/components/Choice/Choice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ export function Choice({
bleedInlineEnd || bleed,
),

...getResponsiveValue(
'choice',
'fill',
// Map "true" => "100%" and "false" => "auto" for use in
// inline/block-size calc()
mapResponsivePropValues(fill, (value) => (value ? '100%' : 'auto')),
...Object.fromEntries(
Object.entries(getResponsiveValue('choice', 'fill', fill)).map(
// Map "true" => "100%" and "false" => "auto" for use in
// inline/block-size calc()
([key, value]) => [key, value ? '100%' : 'auto'],
),
),
} as React.CSSProperties;

Expand Down

0 comments on commit 1e4a0f3

Please sign in to comment.