File tree Expand file tree Collapse file tree 3 files changed +21
-13
lines changed
src/BootstrapBlazor/Components/Tab Expand file tree Collapse file tree 3 files changed +21
-13
lines changed Original file line number Diff line number Diff line change 137137 </div >;
138138
139139 RenderFragment RenderHeader (TabItem item ) =>
140- @<div @key =" @item" class =" @GetItemWrapClassString(item)" >
141- <a href =" @item.Url" role =" tab" tabindex =" -1" class =" @GetClassString(item)" @onclick =" @(() => OnClickTabItem(item))" @onclick:preventDefault =" @(!ClickTabToNavigation)" draggable = " @DraggableString " >
140+ @<div @key =" @item" class =" @GetItemWrapClassString(item)" draggable = " @DraggableString " >
141+ <a href =" @item.Url" role =" tab" tabindex =" -1" class =" @GetClassString(item)" @onclick =" @(() => OnClickTabItem(item))" @onclick:preventDefault =" @(!ClickTabToNavigation)" >
142142 @RenderHeaderContent(item)
143143 </a >
144144 @if (TabStyle == TabStyle .Chrome )
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ public partial class Tab : IHandlerException
2929 . Build ( ) ;
3030
3131 private string ? GetClassString ( TabItem item ) => CssBuilder . Default ( "tabs-item" )
32- . AddClass ( "active" , TabStyle == TabStyle . Default && item . IsActive && ! item . IsDisabled )
3332 . AddClass ( "disabled" , item . IsDisabled )
3433 . AddClass ( item . CssClass )
3534 . AddClass ( "is-closeable" , ShowClose )
Original file line number Diff line number Diff line change 226226
227227.tabs.tabs-card > .tabs-header .tabs-item.active ,
228228.tabs.tabs-border-card > .tabs-header .tabs-item.active {
229- background-color : var (--bs-body-bg );
230229 border-width : 0 1px 0px 0 ;
231230}
232231
470469 min-height : calc (100% + 2rem );
471470}
472471
473- .tab-drag-over {
474- animation : drag- tab- item 1s linear infinite ;
475- }
472+ .tab-dragging {
473+ .tabs-item-wrap :not (:hover ) .tabs-item {
474+ pointer-events : none ;
475+ }
476476
477- .tab-dragging th [ draggable ] * {
478- pointer-events : none ;
479- }
477+ .tab-drag-over .tabs-item {
478+ animation : drag - tab - item 1 s linear infinite ;
479+ }
480480
481- .tab-drag {
482- background-color : var (--bs-secondary );
481+ .tab-drag {
482+ background-color : var (--bs-secondary );
483+ }
483484}
484485
485486@keyframes drag-tab-item {
486487 50% {
487- background-color : var (--bs-primary );
488+ background-color : var (--bs-primary ) !important ;
488489 }
489490}
490491
537538 }
538539 }
539540 }
541+
542+ .tab-drag-over .tabs-item {
543+ animation : none ;
544+ }
545+
546+ .tab-drag-over .tabs-item .tabs-item-body {
547+ animation : drag- tab- item 1s linear infinite ;
548+ }
540549}
541550
542551.tabs-chrome > .tabs-header {
You can’t perform that action at this time.
0 commit comments