Skip to content

fix: add CSS-only social icons to ease-footer, removing Font Awesome dependency (#1349)#1357

Open
Pcmhacker-piro wants to merge 3 commits into
SAPTARSHI-coder:mainfrom
Pcmhacker-piro:fix/footer-social-icons-1349
Open

fix: add CSS-only social icons to ease-footer, removing Font Awesome dependency (#1349)#1357
Pcmhacker-piro wants to merge 3 commits into
SAPTARSHI-coder:mainfrom
Pcmhacker-piro:fix/footer-social-icons-1349

Conversation

@Pcmhacker-piro
Copy link
Copy Markdown

Closes #1349

Pull Request Description

The ease-footer social icons depend on Font Awesome classes (fab fa-github, etc.), so when FA fails to load the icon containers render as empty spaces, breaking footer alignment. This adds inline SVG icons via CSS mask so icons work with zero external dependencies.


Type of Change

  • ✨ New animation / hover effect
  • 🧩 New component
  • 📝 Documentation improvement
  • 🐛 Bug fix in an existing submission
  • Other (describe below)

Submission Checklist

  • All changes are inside submissions/examples/your-feature-name/
  • Includes demo.html — self-contained, opens in browser with no server
  • Includes style.css — raw CSS for the proposed feature
  • Includes README.md — what it does, how to use it, why it fits EaseMotion CSS
  • No changes to core/
  • No changes to components/ — only components/footer.css
  • One feature per PR (no bundled unrelated changes)

Feature Description

What does this add?

::before pseudo-elements with SVG mask data URIs on .ease-footer-social a for GitHub, Twitter/X, YouTube, LinkedIn, Facebook, Instagram, and Discord — detected via href attribute selectors. A generic fallback covers unknown links.

How does a developer use it?

<footer class="ease-footer">
  <div class="ease-footer-social">
    <a href="https://github.com/username">GitHub</a>
    <a href="https://twitter.com/username">Twitter</a>
    <a href="https://youtube.com/@channel">YouTube</a>
  </div>
</footer>
No icon classes needed — just a real href pointing to the platform.
Why does it fit EaseMotion CSS?
Zero external dependencies. The icons inherit currentColor so hover transitions (background → primary, color → white) work seamlessly. When Font Awesome is loaded, its higher-specificity ::before rules take precedence automatically.
Demo
- Demo added (demo.html works by opening directly in a browser)
Browser Testing
- Chrome
- Firefox
- Edge
- Safari (optional but appreciated)
Notes for Maintainer
Supported platforms and their href patterns:
- github.com, twitter.com / x.com, youtube.com, linkedin.com, facebook.com, instagram.com, discord
The :where() pseudo-class keeps the generic fallback at zero specificity so it never overrides platform-specific icons. Icons use mask with currentColor so hover color transitions work automatically.
Closes #1349

prakash meena added 3 commits June 5, 2026 01:54
- Fix duplicate id="variables" (second section renamed to id="custom-properties")
- Fix duplicate id="animations" (second section renamed to id="animations-reference")
- Fix unclosed <pre><code> tag in delay helpers example
Adds ::before pseudo-elements with SVG mask technique to render
social icons directly from CSS. Supports GitHub, Twitter/X, YouTube,
LinkedIn, Facebook, Instagram, and Discord via href attribute selectors.

When Font Awesome is loaded, its higher-specificity ::before rules
take precedence. When FA is unavailable, the inline SVG fallback
provides crisp, colorable icons that inherit hover transitions.

Closes SAPTARSHI-coder#1349
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jun 4, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

📊 CSS Bundle Size Benchmark

No change in CSS bundle size. ✨

@Pcmhacker-piro
Copy link
Copy Markdown
Author

heyy @SAPTARSHI-coder
i fixed the assign issue so pls check this

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

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

## Bug: ease-footer social icon alignment breaks when external icon library is not loaded

1 participant