Skip to content

fix: button group border asymmetry and size/pill composition breakage#882

Open
siddhantsinghbussiness-afk wants to merge 1 commit into
SAPTARSHI-coder:mainfrom
siddhantsinghbussiness-afk:fix-button-group-border-radius
Open

fix: button group border asymmetry and size/pill composition breakage#882
siddhantsinghbussiness-afk wants to merge 1 commit into
SAPTARSHI-coder:mainfrom
siddhantsinghbussiness-afk:fix-button-group-border-radius

Conversation

@siddhantsinghbussiness-afk
Copy link
Copy Markdown

This PR resolves the issue where the .ease-btn-group wrapper class hardcoded border-radius: var(--ease-radius-md) on its boundary buttons, breaking styling consistency when combining different sizes or shapes (such as small, large, or pill buttons). It also addresses the asymmetry and uneven border thicknesses of adjacent outline buttons.

Changes

  • Updated the border-radius rules inside .ease-btn-group in components/buttons.css to respect the .ease-btn-pill, .ease-btn-sm, .ease-btn-lg, and .ease-btn-xl modifier classes on the :first-child and :last-child buttons.
  • Replaced the asymmetric border-right-width: 1px override with a symmetric negative margin overlay (margin-right: -2px corresponding to the button's 2px border width).
  • Added z-index: 1 triggers on hover, focus-visible, and active interactions to ensure borders render correctly when interactive.
  • Rebuilt the minified CSS distribution file easemotion.min.css.
  • Added a "Button Groups" subsection inside examples/demo.html to showcase and verify these sizing and pill layouts.

Fixes #881

@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 2, 2026
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.

[BUG] Button Group Border Asymmetry and Pill/Size Compositions Breakage

2 participants