Skip to content

Commit 76c3459

Browse files
fix: prevent cropped icons in webkit (#5261)
* fix: set `min-inline-size` and `max-inline-size` to ensure icons are not cropped in webkit closes #5247 * chore: remove `@db-ux/core-web` from changeset config this is needed since otherwise when running `npm run changeset`, will error with: > The package or glob expression "@db-ux/core-web" is specified in the > `ignore` option but it is not found in the project. >You may have misspelled the package name or provided an invalid glob expression * chore: changesets * fix: use correct version type `patch` * Update packages/foundations/scss/icons/_icon-helpers.scss Co-authored-by: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> * Update .changeset/young-doors-act.md --------- Co-authored-by: Maximilian Franzke <787658+mfranzke@users.noreply.github.com>
1 parent ed5cebe commit 76c3459

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.changeset/young-doors-act.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@db-ux/core-foundations": patch
3+
---
4+
5+
fix: prevent cropped icons in webkit
196 Bytes
Loading

packages/foundations/scss/icons/_icon-helpers.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ $default-icon-font-size: var(--db-icon-font-size, #{$default-icon-size-rem});
161161
overflow: clip;
162162
vertical-align: var(--db-icon-vertical-align, middle);
163163
block-size: $default-icon-font-size;
164-
inline-size: $default-icon-font-size;
164+
aspect-ratio: 1;
165+
flex-shrink: 0;
165166

166167
@include icon-content($default-icon-content); // TODO: ONLY FOR data-icon
167168

0 commit comments

Comments
 (0)