Skip to content

Commit

Permalink
BoxControl: Unify input filed width whether linked or not (#65348)
Browse files Browse the repository at this point in the history
* BoxControl: Unify input filed width whether linked or not

* Update changelog

Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: tyxla <tyxla@git.wordpress.org>
  • Loading branch information
3 people committed Sep 18, 2024
1 parent 4b26720 commit a8b606b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- `Tabs`: restore vertical indicator ([#65385](https://github.com/WordPress/gutenberg/pull/65385)).
- `Tabs`: indicator positioning under RTL direction ([#64926](https://github.com/WordPress/gutenberg/pull/64926)).
- `Popover`: Update `toolbar` variant radius to match block toolbar ([#65263](https://github.com/WordPress/gutenberg/pull/65263)).
- `BoxControl`: Unify input filed width whether linked or not ([#65348](https://github.com/WordPress/gutenberg/pull/65348)).

### Deprecations

Expand Down
5 changes: 2 additions & 3 deletions packages/components/src/box-control/all-input-control.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
FlexedRangeControl,
StyledUnitControl,
} from './styles/box-control-styles';
import { HStack } from '../h-stack';
import type { BoxControlInputControlProps } from './types';
import { parseQuantityAndUnitFromRawValue } from '../unit-control';
import {
Expand Down Expand Up @@ -72,7 +71,7 @@ export default function AllInputControl( {
};

return (
<HStack>
<>
<StyledUnitControl
{ ...props }
__next40pxDefaultSize={ __next40pxDefaultSize }
Expand Down Expand Up @@ -104,6 +103,6 @@ export default function AllInputControl( {
value={ parsedQuantity ?? 0 }
withInputField={ false }
/>
</HStack>
</>
);
}

1 comment on commit a8b606b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in a8b606b.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/10923060032
📝 Reported issues:

Please sign in to comment.