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

Fixed Back-to-Top Arrow Icon #377 #381

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

KasakAnand07
Copy link
Contributor

Description

This PR addresses the issue where the back-to-top arrow icon was not properly centered within the circular button. The icon was misaligned vertically and/or horizontally, affecting the user interface's overall appearance.

Steps to Reproduce

  1. Create a back-to-top button with a circular design.
  2. Add an arrow icon (e.g., a Font Awesome arrow) inside the button.
  3. Observe that the arrow icon is not centered as expected.

Changes Made

  • Adjusted the CSS styles for the circular button to ensure the icon is perfectly centered both vertically and horizontally.
  • Used flexbox properties for alignment:
    • Set the button to display: flex.
    • Used align-items: center and justify-content: center to center the icon.

Expected Behavior

  • The arrow icon should now be perfectly centered within the circular button.

Actual Behavior

  • Previously, the arrow icon appeared slightly misaligned within the circular button.

Screenshots

Before Fix:
Screenshot 2024-10-06 111909

After Fix:
Screenshot 2024-10-17 002940

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

Successfully merging this pull request may close these issues.

2 participants