Skip to content

Conversation

DRiFTy17
Copy link
Collaborator

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added/updated: N
  • Docs have been added/updated: N
  • Does this PR introduce a breaking change? N
  • I have linked any related GitHub issues to be closed when this PR is merged? N

Describe the new behavior?

Switch to a grid layout instead of flex to allow for the button to control its layout, rather than relying on slotted children for dimensions.

Additionally, now that grid is used, I've set the default block padding to 0 because it was interfering with the static height of the button in terms of content alignment.

Additional information

This fixes a bug in Safari where the text nodes were collapsing due to the flex layout, and slotted selectors could not apply to text nodes to control the flex item dimensions... Using a grid layout should give more control regardless.

@DRiFTy17 DRiFTy17 added patch Increment the patch version when merged skip-release Preserve the current version when merged labels Mar 13, 2025
@DRiFTy17 DRiFTy17 requested a review from a team as a code owner March 13, 2025 19:23
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@DRiFTy17 DRiFTy17 merged commit 3d2aa75 into main Mar 22, 2025
13 checks passed
@DRiFTy17 DRiFTy17 deleted the fix-button-layout-collapse branch March 22, 2025 02:42
Copy link
Contributor

github-actions bot commented Apr 3, 2025

🚀 PR was released in v3.8.0 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged released This issue/pull request has been released. skip-release Preserve the current version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants