mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
update checkbox style
This commit is contained in:
parent
b82e8fc50f
commit
86b722671a
@ -9,9 +9,12 @@
|
||||
````jsx
|
||||
var Checkbox = antd.Checkbox;
|
||||
var container = document.getElementById('components-checkbox-demo-basic');
|
||||
|
||||
function onChange(checked){
|
||||
console.log('checked = ' + checked);
|
||||
}
|
||||
|
||||
React.render(<label><Checkbox defaultChecked={false} onChange={onChange}/> checkbox</label>, container);
|
||||
React.render(<label>
|
||||
<Checkbox defaultChecked={false} onChange={onChange}/> Checkbox
|
||||
</label>, container);
|
||||
````
|
||||
|
@ -7,7 +7,9 @@
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
display: inline-block;
|
||||
line-height: 1;
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
|
||||
&:hover {
|
||||
.@{checkboxInnerPrefixCls} {
|
||||
|
Loading…
Reference in New Issue
Block a user