Skip to content

Commit

Permalink
fix: [Icon] Restrict wrapper height to match icon height
Browse files Browse the repository at this point in the history
  • Loading branch information
meissadia committed Feb 20, 2024
1 parent f91be24 commit 620d620
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Icon/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ export const Icon = ({
const iconHtml = `${icon}`.replace('<svg', `<svg ${iconAttributes} `);

return (
<span
<div
className='cf-icon-svg-wrapper'
style={{ display: 'inline-block', height: '1.1875em' }}
dangerouslySetInnerHTML={{ __html: iconHtml }}
{...others}
/>
Expand Down

0 comments on commit 620d620

Please sign in to comment.