You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Icons stacked in an fa-layers container get misaligned when ambient font-size is set to most non-integral rem values (i.e. a rem value other than 1rem or 2rem etc).
Results vary a bit depending on exactly what we set the font-size to. For some values we get only horizontal misalignment, for others we get vertical misalignment, or both. For some values the icons are even cropped from one or more directions. For some values it breaks in some browsers but not others.
Not being able to vary the text size of icon layers makes them all but unusable.
The issue becomes especially noticeable if one of the layers is configured to rotate, the effect being that it does not rotate around its center but rather wobbles noticably.
Bug description
Icons stacked in an
fa-layers
container get misaligned when ambientfont-size
is set to most non-integralrem
values (i.e. arem
value other than1rem
or2rem
etc).Results vary a bit depending on exactly what we set the
font-size
to. For some values we get only horizontal misalignment, for others we get vertical misalignment, or both. For some values the icons are even cropped from one or more directions. For some values it breaks in some browsers but not others.Not being able to vary the text size of icon layers makes them all but unusable.
The issue becomes especially noticeable if one of the layers is configured to rotate, the effect being that it does not rotate around its center but rather wobbles noticably.
Simple repro (CodePen also provided below):
Zoom in on the icon in Safari to see the misalignment (see screenshots below for more example for other browsers).
Reproducible test case
https://codepen.io/DaRosenberg/pen/MYgmZrx
Screenshots
2rem
(correct):2.15rem
(incorrect - Safari):1.85rem
(incorrect - Chrome):Font Awesome version
Latest 6.x
Serving
Kit
Implementation
SVG+JS
Browser and Operating System
Web bug report checklist
The text was updated successfully, but these errors were encountered: