Skip to content

chore: replace MUI Button - 3 #17955

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 21, 2025
Merged

Conversation

BrunoQuaresma
Copy link
Collaborator

Replaced MUI Button with custom Button in 5 components:

  • Filter.tsx - Changed import and updated Button props
    (variant="outline", size="sm")
  • ChatLayout.tsx - Changed import and updated Button
    props for the "New Chat" button
  • StarterTemplatePageView.tsx - Changed import and
    implemented asChild pattern for links
  • Notifications.tsx - Changed import and updated
    NotificationActionButton to use variant="subtle"
  • DateRange.tsx - Changed import and updated Button
    styling

@BrunoQuaresma BrunoQuaresma requested a review from a team May 20, 2025 20:40
@BrunoQuaresma BrunoQuaresma self-assigned this May 20, 2025
@BrunoQuaresma BrunoQuaresma requested review from aqandrew and removed request for a team May 20, 2025 20:40
Comment on lines +53 to +57
<Button asChild size="sm">
<Link to={`/templates/new?exampleId=${starterTemplate.id}`}>
<PlusIcon />
Use template
</Link>

Choose a reason for hiding this comment

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

Nit: I think differentiating these two buttons with outline/default variants is the right call, but the Use template button's left padding with the icon's whitespace is large, so the button contents look unbalanced

main:

image

this branch:

image

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure if I got it.... 🤔

Choose a reason for hiding this comment

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

Screenshot 2025-05-21 at 12 12 48 PM

No big deal haha. Being that Button has equal px on the left/right, I feel like adding unequal x-padding like this in Button variants (or case-by-case for each icon?) would be a bit of a pain

@BrunoQuaresma BrunoQuaresma merged commit f35a1bc into main May 21, 2025
34 checks passed
@BrunoQuaresma BrunoQuaresma deleted the bq/replace-mui-button-3-main branch May 21, 2025 18:58
@github-actions github-actions bot locked and limited conversation to collaborators May 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants