Skip to content

Commit 9b48761

Browse files
vk17-starlordvk17-starlordMamadukaartemiomoraleslichtmetzger
authored
Ensure SVG Images Without a Width Attribute Are Displayed Correctly in FocalPointPicker (WordPress#70061)
Co-authored-by: vk17-starlord <vineet2003@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: artemiomorales <artemiosans@git.wordpress.org> Co-authored-by: lichtmetzger <dscqbus@git.wordpress.org>
1 parent 5d41556 commit 9b48761

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/components/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
- `ToggleGroupControl`: Fix active background for empty string value ([#69969](https://github.com/WordPress/gutenberg/pull/69969)).
3333
- `ItemGroup`: Fix double border in `ItemGroup` when last item is focused ([#70021](https://github.com/WordPress/gutenberg/pull/70021)).
3434
- `__experimentalUseCustomUnits `: Don't mutate 'ALL_CSS_UNITS' default value ([#70037](https://github.com/WordPress/gutenberg/pull/70037)).
35+
- `FocalPointPicker`: Fix SVG display when it doesn't provide a width attribute ([#70061](https://github.com/WordPress/gutenberg/pull/70061))..
3536

3637
### Internal
3738

packages/components/src/focal-point-picker/styles/focal-point-picker-style.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const MediaContainer = styled.div`
5353
max-width: 100%;
5454
pointer-events: none;
5555
user-select: none;
56-
width: auto;
56+
width: 100%;
5757
}
5858
`;
5959

0 commit comments

Comments
 (0)