File tree Expand file tree Collapse file tree 2 files changed +34
-35
lines changed
src/BootstrapBlazor/Components Expand file tree Collapse file tree 2 files changed +34
-35
lines changed Original file line number Diff line number Diff line change 66{
77 <BootstrapLabel required =" @Required" for =" @Id" ShowLabelTooltip =" ShowLabelTooltip" Value =" @DisplayText" />
88}
9- @if (InputGroup == null )
10- {
11- @RenderCheckbox
12- }
13- else
14- {
15- <div class =" form-control" >
16- @RenderCheckbox
17- </div >
18- }
19-
20- @code {
21- RenderFragment RenderCheckbox =>
22- @< div @attributes = " AdditionalAttributes" class = " @ClassString" >
23- < input type = " checkbox" id = " @Id" class = " @InputClassString" disabled = " @Disabled" checked = " @CheckedString"
24- @onclick = " OnToggleClick" @onclick : stopPropagation = " StopPropagation" @onclick : preventDefault = " false" / >
25- @if (IsShowAfterLabel )
26- {
27- @RenderLabel
28- }
29- < / div > ;
30-
31- RenderFragment RenderLabel =>
32- @< label class = " form-check-label" for = " @Id" >
33- @if (ShowLabelTooltip is true )
34- {
35- < Tooltip Title = " @DisplayText" >
9+ <div @attributes =" AdditionalAttributes" class =" @ClassString" >
10+ <input type =" checkbox" id =" @Id" class =" @InputClassString" disabled =" @Disabled" checked =" @CheckedString"
11+ @onclick =" OnToggleClick" @onclick:stopPropagation =" StopPropagation" @onclick:preventDefault =" false" />
12+ @if (IsShowAfterLabel )
13+ {
14+ <label class =" form-check-label" for =" @Id" >
15+ @if (ShowLabelTooltip is true )
16+ {
17+ <Tooltip Title =" @DisplayText" >
18+ @DisplayText
19+ </Tooltip >
20+ }
21+ else
22+ {
3623 @DisplayText
37- < / Tooltip >
38- }
39- else
40- {
41- @DisplayText
42- }
43- < / label > ;
44- }
24+ }
25+ </label >
26+ }
27+ </div >
Original file line number Diff line number Diff line change 5858 > .form-label {
5959 display : none ;
6060 }
61+
62+ > .form-check {
63+ --bb-form-check-padding : 0.375rem 0.75rem ;
64+ border : 1px solid var (--bs-border-color );
65+ border-radius : var (--bs-border-radius );
66+ flex-grow : 1 ;
67+ width : 1% ;
68+ min-width : 0 ;
69+ display : flex ;
70+ align-items : center ;
71+ padding : var (--bb-form-check-padding );
72+
73+ & :hover {
74+ border : 1px solid var (--bb-border-hover-color );
75+ }
76+ }
6177}
6278
6379.input-group-xs {
You can’t perform that action at this time.
0 commit comments