8000 Card component by albx · Pull Request #16 · albx/bitblazor · GitHub
[go: up one dir, main page]

Skip to content

Card component - #16

Merged
albx merged 18 commits into
mainfrom
feature/4-card
Aug 15, 2025
Merged

albx merged 18 commits into
mainfrom
feature/4-card

Conversation

@albx
@albx albx commented Aug 15, 2025
Copy link
Copy Markdown
Owner

This pull request introduces a new, modular Card component system to the BitBlazor library, providing a flexible and customizable way to build card-based layouts using Bootstrap Italia styles. It also includes minor updates such as a dependency version bump and a Visual Studio version update. The most significant changes are grouped below.

New Card Component System

  • Added a main BitCard component with configurable parameters for type, border, shadow, height, inline mode, and top border color, including logic for dynamic CSS class computation. [1] [2]
  • Introduced supporting card subcomponents for building rich card layouts:
    • CardBody, CardFooter, CardImage, CardImageWrapper, CardDate, CardBannerIcon, CardProfileHeader, and CardProfileIcon, each with their own parameters and documentation for flexibility and accessibility. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15]
  • Ensured all card-related components use proper cascading parameters and lifecycle hooks to coordinate state and styling with their parent BitCard. [1] [2]

Documentation and Accessibility

  • Added XML documentation comments to all new components and their parameters to improve code clarity and maintainability. [1] [2] [3] [4] [5] [6] [7]
  • Enhanced accessibility support via parameters like AriaLabel, AriaHidden, and guidance for alternative text on images. [1] [2] [3] [4]

Minor Improvements

  • Updated the Microsoft.AspNetCore.Components.Web NuGet package version from 9.0.6 to 9.0.8 in BitBlazor.csproj.
  • Updated the Visual Studio solution file to require Visual Studio version 18.

Other

  • Added a summary comment to the ButtonBadge component for improved documentation.

@albx albx linked an issue Aug 15, 2025 that may be closed by this pull request
@albx
albx requested a review from Copilot August 15, 2025 09:33

This comment was marked as outdated.

@albx
albx requested a review from Copilot August 15, 2025 09:39

This comment was marked as outdated.

@albx
albx requested a review from Copilot August 15, 2025 09:44
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request introduces a comprehensive Card component system to the BitBlazor library, providing flexible card-based layouts using Bootstrap Italia styles. The PR includes a modular architecture with a main BitCard component and multiple supporting subcomponents, enabling developers to build rich card interfaces with various content types and layouts.

Key Changes:

  • New Card component system with main BitCard component and 13+ supporting subcomponents
  • Comprehensive unit tests covering various card types, styling options, and layout configurations
  • Extensive Storybook examples demonstrating different card use cases
  • Minor dependency updates and documentation improvements

Reviewed Changes

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

Show a summary per file
File Description
src/BitBlazor/Components/Card/ Core Card component implementation with main BitCard and all subcomponents
tests/BitBlazor.Test/Components/Card/ Comprehensive unit tests for Card component rendering scenarios
stories/BitBlazor.Stories/Components/Stories/Components/ Storybook examples showcasing Card component usage patterns
src/BitBlazor/Typography.cs & Ratio.cs New enums supporting Card component typography and aspect ratio options
src/BitBlazor/Utilities/Icons/ Enhanced BitIcon component with accessibility and role attributes
src/BitBlazor/BitBlazor.csproj Updated Microsoft.AspNetCore.Components.Web dependency to 9.0.8

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@albx
albx merged commit 8fca54d into main Aug 15, 2025
@albx
albx deleted the feature/4-card branch August 15, 2025 09:46
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.

Add the Card component

2 participants

0