Skip to content

Enforce className of interactiveElements#1066

Merged
pfferrari merged 1 commit intomainfrom
enforce-interactive-elements
Apr 10, 2026
Merged

Enforce className of interactiveElements#1066
pfferrari merged 1 commit intomainfrom
enforce-interactive-elements

Conversation

@pfferrari
Copy link
Copy Markdown
Contributor

What I did

This pull request refactors the way class names are applied to interactive UI elements (such as buttons and anchors) to improve consistency, simplify logic, and clarify the intended styling.
The main functional change is separating padding and sizing logic, and always using flexbox alignment for non-link variants.

These changes make the codebase more maintainable and ensure consistent styling and alignment for interactive elements across the library.

Checklist

  • Make sure your changes are tested (stories and/or unit, integration, or end-to-end tests).
  • Make sure to add/update documentation regarding your changes.
  • You are NOT deprecating/removing a feature.

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 8, 2026

Deploy Preview for commercelayer-app-elements ready!

Name Link
🔨 Latest commit 1cb35c9
🔍 Latest deploy log https://app.netlify.com/projects/commercelayer-app-elements/deploys/69d7b76b40a19f00088a3f60
😎 Deploy Preview https://deploy-preview-1066--commercelayer-app-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@pfferrari pfferrari self-assigned this Apr 8, 2026
@pfferrari pfferrari added the enhancement New feature or request label Apr 8, 2026
@pfferrari pfferrari force-pushed the enforce-interactive-elements branch from 09d1ede to 1cb35c9 Compare April 9, 2026 14:27
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 9, 2026

npm i https://pkg.pr.new/commercelayer/app-elements/@commercelayer/app-elements@1066

commit: 1cb35c9

@pfferrari pfferrari merged commit e21de9f into main Apr 10, 2026
7 checks passed
@pfferrari pfferrari deleted the enforce-interactive-elements branch April 10, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants