Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: align callout icon with text #443

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Eneko96
Copy link

@Eneko96 Eneko96 commented Jan 29, 2025

Description

This change adjusts the positioning of .yoopta-callout-icon to better align it vertically. The top-2 utility has been replaced with top-1/2, centering the element within its parent. Additionally, a new rule for .yoopta-callout-icon > svg applies -translate-y-1/2, ensuring that the icon itself is vertically centered within its container.

This does not work for the info icon since the path doesn't fill the 16x16 block all other icons on callout do

Fixes # (issue)

Misalignment of the callout icon

Type of change

Please tick the relevant option.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • I have performed a self-review of my own code
  • I have commented on my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have checked my code and corrected any misspellings

Copy link

vercel bot commented Jan 29, 2025

@Eneko96 is attempting to deploy a commit to the dargo's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant