File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
src/BootstrapBlazor/Components/Upload Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -72,12 +72,12 @@ public partial class DropUpload
7272 private IStringLocalizer < UploadBase < string > > ? Localizer { get ; set ; }
7373
7474 private string ? ClassString => CssBuilder . Default ( "upload is-drop" )
75+ . AddClass ( "disabled" , IsDisabled )
7576 . AddClassFromAttributes ( AdditionalAttributes )
7677 . Build ( ) ;
7778
7879 private string ? BodyClassString => CssBuilder . Default ( "upload-drop-body" )
7980 . AddClass ( "btn-browser" , ! IsDisabled )
80- . AddClass ( "disabled" , IsDisabled )
8181 . Build ( ) ;
8282
8383 private string ? TextClassString => CssBuilder . Default ( "upload-drop-text" )
Original file line number Diff line number Diff line change 300300}
301301
302302.upload.is-drop {
303+
304+ & .disabled {
305+ .upload-drop-body {
306+ border-color : var (--bs-border-color );
307+ }
308+ }
309+
303310 .upload-drop-body {
304311 border : 1px dashed var (--bs-primary );
305312 border-radius : var (--bs-border-radius );
310317 height : var (--bb-upload-drop-height );
311318 cursor : pointer ;
312319
313- & .disabled {
314- border-color : var (--bs-border-color );
315- }
316-
317320 .upload-drop-icon > i {
318321 font-size : 3em ;
319322 color : var (--bs-secondary );
You can’t perform that action at this time.
0 commit comments