Skip to content

Add previews of button sizes#29

Merged
koppen merged 3 commits intomainfrom
button_sizes
Aug 21, 2025
Merged

Add previews of button sizes#29
koppen merged 3 commits intomainfrom
button_sizes

Conversation

@koppen
Copy link
Copy Markdown
Member

@koppen koppen commented Aug 21, 2025

CleanShot 2025-08-21 at 11 54 48

@koppen koppen requested a review from Copilot August 21, 2025 09:55
Copy link
Copy Markdown
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 adds previews for different button sizes in the demo and adjusts the small button padding. The change provides visual examples of all available button sizes (xs, sm, default, lg, xl) and standardizes the vertical padding for small buttons.

  • Adds a new "Sizes" preview group showcasing all button size variants
  • Updates the small button's vertical padding from py-1.5 to py-2

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
demo/test/components/previews/button_preview.rb Adds preview methods for all button sizes with display configuration
app/components/flowbite/button.rb Updates small button vertical padding for consistency

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@koppen koppen requested review from RasmusDWN and olepalm August 21, 2025 10:13
@koppen koppen merged commit e461b4f into main Aug 21, 2025
5 checks passed
@koppen koppen deleted the button_sizes branch August 21, 2025 10:59
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