File tree Expand file tree Collapse file tree
src/components/complex-checkbox Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ export default function ComplexCheckbox(props) {
3131 [ `${ classSelector } -overflow-ellipsis` ] : textOverflowEllipsis ,
3232 [ `${ classSelector } -card` ] : type === 'card' ,
3333 [ `${ classSelector } -card-disabled` ] : type === 'card' && props . disabled ,
34+ [ `${ classSelector } -has-content` ] : ! ! content ,
3435 } ) }
3536 { ...otherProps }
3637 >
@@ -55,7 +56,7 @@ export default function ComplexCheckbox(props) {
5556}
5657
5758ComplexCheckbox . propTypes = {
58- content : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . element ] ) ,
59+ content : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . element ] ) ,
5960 imgSrc : PropTypes . string ,
6061 title : PropTypes . string ,
6162 textOverflowEllipsis : PropTypes . bool ,
Original file line number Diff line number Diff line change 1212 width : 24px ;
1313 margin-right : 8px ;
1414 border-radius : 3px ;
15+ .@{prefix} -checkbox-wrapper {
16+ top : 0px ;
17+ }
18+ }
19+
20+ &-has-content {
21+ .@{prefix} -checkbox-wrapper {
22+ top : 3px ;
23+ }
1524 }
1625
1726 &-title {
1827 color : @gray-9 ;
19- margin-bottom : 4px ;
2028 }
2129
2230 &-content {
2331 color : @gray-7 ;
2432 line-height : 20px ;
33+ margin-top : 4px ;
2534 }
2635
2736 &-card {
You can’t perform that action at this time.
0 commit comments