Skip to content

Commit

Permalink
Flex dimensions: Rename "Fill" to "Grow". (#62779)
Browse files Browse the repository at this point in the history
* Flex dimensions: Rename "Fill" to "Grow".

* Add translation context.
  • Loading branch information
jasmussen authored Jul 3, 2024
1 parent 1dcc812 commit cf45f45
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions packages/block-editor/src/components/child-layout-control/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
Flex,
FlexItem,
} from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import { __, _x } from '@wordpress/i18n';
import { useEffect } from '@wordpress/element';
import { useSelect, useDispatch } from '@wordpress/data';

Expand Down Expand Up @@ -142,17 +142,26 @@ function FlexControls( {
<ToggleGroupControlOption
key="fit"
value="fit"
label={ __( 'Fit' ) }
label={ _x(
'Fit',
'Intrinsic block width in flex layout'
) }
/>
<ToggleGroupControlOption
key="fill"
value="fill"
label={ __( 'Fill' ) }
label={ _x(
'Grow',
'Block with expanding width in flex layout'
) }
/>
<ToggleGroupControlOption
key="fixed"
value="fixed"
label={ __( 'Fixed' ) }
label={ _x(
'Fixed',
'Block with fixed width in flex layout'
) }
/>
</ToggleGroupControl>
{ selfStretch === 'fixed' && (
Expand Down

0 comments on commit cf45f45

Please sign in to comment.