helluvamatt / BootstrapIcons.Net

Bootstrap icons for WPF
MIT License
7 stars 3 forks source link

Set default width and height for BoostrapIconTagHelper #64

Open austins opened 8 months ago

austins commented 8 months ago

I would like to propose setting a default width and height of 1em to the svg tag output to reduce cumulative layout shift if no width or height is manually specified, which would be useful for inlining with text, or is adjusted by any CSS rules that may be loaded on a page.

Various icon libraries in JS (e.g. Iconify) use these width and height values as the default, too.

(Accidentally closed the last PR since I renamed the branch).