ant-design-icons
ant-design-icons copied to clipboard
Style conflict with Tailwind Preflight (or other normalize css)
Ant design icons set a global vertical-align
property under the class selector .anticon
with a value of -0.125em
which could be easily preceded by other element selectors, like the one introduced in Tailwind Preflight.
In that case, the icon is not vertically middle aligned. (Check the image below.)
You can try override styling for svg tag in your global file css:
svg {
vertical-align: baseline;
}