Skip to content

fix(components): use per-variant --ease-btn-glow instead of hardcoded --ease-glow-primary#1210

Merged
SAPTARSHI-coder merged 2 commits into
SAPTARSHI-coder:mainfrom
ionfwsrijan:fix-1205-btn-glow-variable
Jun 4, 2026
Merged

fix(components): use per-variant --ease-btn-glow instead of hardcoded --ease-glow-primary#1210
SAPTARSHI-coder merged 2 commits into
SAPTARSHI-coder:mainfrom
ionfwsrijan:fix-1205-btn-glow-variable

Conversation

@ionfwsrijan
Copy link
Copy Markdown
Contributor

Description

Each button variant sets --ease-btn-glow to its own glow color (--ease-glow-success, --ease-glow-danger, etc.), but the .ease-btn-hover class hardcodes var(--ease-glow-primary) instead of using the variant's custom property. Success, danger, outline, and ghost buttons all glow purple instead of their respective colors.

Fix

Changed the hardcoded var(--ease-glow-primary) to var(--ease-btn-glow, var(--ease-glow-primary)) so per-variant glow colors take effect with the primary glow as fallback.

Changes

  • components/buttons.css:222 — use --ease-btn-glow with --ease-glow-primary fallback

Closes #1205

… --ease-glow-primary

Each button variant sets --ease-btn-glow to its own glow color, but
.ease-btn-hover hardcoded var(--ease-glow-primary). With this fix, the
glow defers to var(--ease-btn-glow) with var(--ease-glow-primary) as fallback.

Closes SAPTARSHI-coder#1205
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

📊 CSS Bundle Size Benchmark

This PR changes the size of easemotion.min.css.

Metric Base Branch This PR Difference
Raw 39.16 KB 39.18 KB 📈 +0.02 KB
Gzip 7.16 KB 7.17 KB 📈 +0.01 KB
Brotli 6.19 KB 6.20 KB 📈 +0.02 KB

@ionfwsrijan
Copy link
Copy Markdown
Contributor Author

@SAPTARSHI-coder You may review and merge

@SAPTARSHI-coder SAPTARSHI-coder added accepted Contribution approved for integration into EaseMotion CSS animation Animation effects, hover interactions, motion ideas, transitions component New UI components (buttons, cards, modals, tooltips, badges) enhancement New feature or request good first issue Good for newcomers GSSoC-26 Official GSSoC 2026 issue gssoc:approved Approved for GSSoC contributions integrated Successfully merged and included in the framework level:intermediate Requires moderate project understanding type:feature New functionality or enhancement labels Jun 4, 2026
@ionfwsrijan
Copy link
Copy Markdown
Contributor Author

@SAPTARSHI-coder Can you please merge this now?

@SAPTARSHI-coder SAPTARSHI-coder merged commit 9d702b7 into SAPTARSHI-coder:main Jun 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted Contribution approved for integration into EaseMotion CSS animation Animation effects, hover interactions, motion ideas, transitions component New UI components (buttons, cards, modals, tooltips, badges) enhancement New feature or request good first issue Good for newcomers gssoc:approved Approved for GSSoC contributions GSSoC-26 Official GSSoC 2026 issue integrated Successfully merged and included in the framework level:intermediate Requires moderate project understanding type:feature New functionality or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.ease-btn-hover Hardcodes Primary Glow, Ignores Per-Variant --ease-btn-glow

2 participants