adevinta / spark

✨ Simple, Modular & Accessible UI Components for your React Applications
https://sparkui.vercel.app
MIT License
49 stars 16 forks source link

fix(icon): fix icon shrinking inside flex containers #2259

Closed Powerplex closed 1 week ago

Powerplex commented 1 week ago

TASK: #2233

Description, Motivation and Context

When icons are before/after a long text inside a flex container, they shrink (unwanted behaviour).

For example inside a FormField helper/error message, or inside an Accordion trigger.

Types of changes

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.56%. Comparing base (61c9f38) to head (15fa0ca). Report is 5 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2259 +/- ## ======================================= Coverage 97.56% 97.56% ======================================= Files 760 760 Lines 6008 6008 Branches 2138 2138 ======================================= Hits 5862 5862 Misses 144 144 Partials 2 2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.