File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
src/BootstrapBlazor/Components/Radio Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ public partial class RadioList<TValue>
4646 . Build ( ) ;
4747
4848 private string ? GetButtonItemClassString ( SelectedItem item ) => CssBuilder . Default ( "btn" )
49- . AddClass ( $ "active bg-{ Color . ToDescriptionString ( ) } ", CurrentValueAsString == item . Value )
49+ . AddClass ( $ "btn-outline-{ Color . ToDescriptionString ( ) } ")
50+ . AddClass ( "active" , CurrentValueAsString == item . Value )
5051 . Build ( ) ;
5152
5253 /// <summary>
Original file line number Diff line number Diff line change 1- .radio-list {
1+ .radio-list {
22 --bb-radio-item-width : #{$bb-radio-item-width } ;
33 --bb-radio-item-padding : #{$bb-radio-item-padding } ;
44 --bb-radio-group-item-active-color : #{$bb-radio-group-item-active-color } ;
2424 }
2525
2626 & .btn-group {
27- border : var (--bs-border-width ) solid var (--bs-border-color );
2827 display : inline-flex ;
2928 flex : 0 !important ;
3029 flex-wrap : nowrap ;
3938 }
4039
4140 & .disabled > span {
41+ --bs-btn-hover-color : var (--bs-btn-color );
42+ --bs-btn-active-color : var (--bs-btn-color );
4243 opacity : var (--bs-btn-disabled-opacity );
4344
4445 & :not (.active ) {
4546 background-color : var (--bs-secondary-bg );
4647 }
4748 }
49+
50+ .btn-outline-info {
51+ --bs-btn-active-color : var (--bb-radio-group-item-active-color );
52+ }
4853 }
4954
5055 & .btn-group-vertical {
Original file line number Diff line number Diff line change @@ -232,13 +232,13 @@ public void IsButton_Ok()
232232 {
233233 pb . Add ( a => a . Color , Color . Danger ) ;
234234 } ) ;
235- cut . Contains ( "btn active bg -danger" ) ;
235+ cut . Contains ( "btn btn-outline -danger" ) ;
236236
237237 cut . InvokeAsync ( ( ) =>
238238 {
239239 var btn = cut . Find ( ".btn" ) ;
240240 btn . Click ( ) ;
241- cut . Contains ( "btn active bg- danger" ) ;
241+ cut . Contains ( "btn btn-outline- danger active " ) ;
242242 } ) ;
243243 }
244244
You can’t perform that action at this time.
0 commit comments