-
-
Notifications
You must be signed in to change notification settings - Fork 364
feat(Tab): compatible with devui style #5757
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
Conversation
Reviewer's Guide by SourceryThis pull request enhances the tab component's styling and functionality by introducing CSS variables, modifying tab item styles, simplifying class assignments, and adding a wrapper for drag-and-drop support. The changes ensure consistent styling across different tab variants and improve the overall appearance and interaction of the component. Updated class diagram for the Tab componentclassDiagram
class Tab {
RenderFragment ChildContent
bool IsBorderCard
}
class TabItem {
RenderFragment HeaderTemplate
bool IsDisabled
bool IsActive
}
Tab *-- TabItem : Contains
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We encountered an error and are unable to review this PR. We have been notified and are working to fix it.
You can try again by commenting this pull request with @sourcery-ai review, or contact us for help.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5757 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 657 657
Lines 29926 29926
Branches 4248 4248
=========================================
Hits 29926 29926 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Link issues
fixes #5756
Summary By Copilot
This pull request includes multiple changes to the
BootstrapBlazorproject, focusing on improving the tab component's styling and functionality. The most significant changes involve updating CSS styles, modifying the tab component's Razor and C# files, and ensuring consistent styling across different tab variants.Styling Improvements:
src/BootstrapBlazor.Server/wwwroot/css/devui.css: Added margin tohrelements and updated padding forpre code.hljselements. [1] [2]src/BootstrapBlazor/Components/Tab/Tab.razor.scss: Introduced new CSS variables for tab item padding, close button height, and other styling properties. Updated various selectors to use these variables for consistent styling. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17]Functional Changes:
src/BootstrapBlazor.Server/Components/Samples/Tabs.razor: Simplified the tab item class assignment by removing theGetClassStringmethod and hardcoding the class name.src/BootstrapBlazor.Server/Components/Samples/Tabs.razor.cs: Removed theGetClassStringmethod, as it is no longer needed.Razor Component Updates:
src/BootstrapBlazor/Components/Tab/Tab.razor: Added adivwrapper with a key and class for each tab item header template to support drag-and-drop functionality.Regression?
Risk
Verification
Packaging changes reviewed?
☑️ Self Check before Merge
Summary by Sourcery
Enhance the Tab component to be compatible with DevUI styling, introducing more flexible and customizable tab styling with improved CSS variables and structure
New Features:
Enhancements: