diff --git a/.changeset/mighty-buttons-yell.md b/.changeset/mighty-buttons-yell.md new file mode 100644 index 0000000000..2e57921df9 --- /dev/null +++ b/.changeset/mighty-buttons-yell.md @@ -0,0 +1,5 @@ +--- +"@digdir/designsystemet-css": patch +--- + +Button: Fix SVG and images shrinking in flex containers diff --git a/packages/css/button.css b/packages/css/button.css index abcc45436a..8aa49a1cbc 100644 --- a/packages/css/button.css +++ b/packages/css/button.css @@ -29,6 +29,11 @@ text-align: inherit; text-decoration: none; + & svg, + & img { + flex-shrink: 0; + } + &:focus-visible { position: relative; /* Place focusring on top */ }