Skip to content

Conversation

@jvsena42
Copy link
Member

Close #506

Description

This PR fixes the Buton width when set Modifier.weight(1f) and fullWidth = false

Preview

Screen_recording_20251211_092703.webm

QA Notes

@jvsena42 jvsena42 requested review from Copilot and ovitrif December 11, 2025 12:27
@jvsena42 jvsena42 self-assigned this Dec 11, 2025
@jvsena42 jvsena42 marked this pull request as ready for review December 11, 2025 12:27
@jvsena42 jvsena42 changed the title Fix/primary bt width fix: Primary Button width Dec 11, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a layout issue with the PrimaryButton component where applying Modifier.weight(1f) with fullWidth = false didn't work as expected. The fix restructures the button by moving the gradient background and click handling from the Button's content to its modifier chain, and adjusts padding application.

Key Changes:

  • Restructured button layout by moving styling from nested Box to Button modifier
  • Changed click handling from Button's onClick to clickableAlpha modifier
  • Adjusted padding application to be on Button instead of nested Box

@jvsena42 jvsena42 marked this pull request as draft December 11, 2025 16:10
@jvsena42 jvsena42 marked this pull request as ready for review December 11, 2025 17:02
Copy link
Collaborator

@ovitrif ovitrif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK

nice solutions 😎

@ovitrif ovitrif merged commit ce263bd into chore/update-deps Dec 12, 2025
9 of 12 checks passed
@ovitrif ovitrif deleted the fix/primary-bt-width branch December 12, 2025 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants