Repository navigation
Card component - #16
Merged
Merged
Conversation
- Updated `BitBlazor.sln` for the latest Visual Studio version. - Introduced `CssClass` parameter in `BitCard` for additional styling. - Enhanced `CardTitle` to support `HasIcon` and computed CSS classes. - Modified `BitIcon` to include accessibility attributes. - Created `CardTitleIcon` component for better icon management. - Updated stories and tests to reflect new features and ensure functionality.
Closed
Contributor
There was a problem hiding this comment.
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
BitCardcomponent 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
BitCardcomponent with configurable parameters for type, border, shadow, height, inline mode, and top border color, including logic for dynamic CSS class computation. [1] [2]CardBody,CardFooter,CardImage,CardImageWrapper,CardDate,CardBannerIcon,CardProfileHeader, andCardProfileIcon, 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]BitCard. [1] [2]Documentation and Accessibility
AriaLabel,AriaHidden, and guidance for alternative text on images. [1] [2] [3] [4]Minor Improvements
Microsoft.AspNetCore.Components.WebNuGet package version from 9.0.6 to 9.0.8 inBitBlazor.csproj.Other
ButtonBadgecomponent for improved documentation.