Merge pull request #2868 from Xotic750/checkbox_tabindex

Checkbox w3c
This commit is contained in:
Aresn 2018-01-22 11:19:05 +08:00 committed by GitHub
commit 23646cc575
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 43 additions and 33 deletions

View file

@ -1,13 +1,18 @@
.checkboxFn(@checkbox-prefix-cls: ~"@{css-prefix}checkbox") {
@checkbox-inner-prefix-cls: ~"@{checkbox-prefix-cls}-inner";
.@{checkbox-prefix-cls}-focus {
box-shadow: 0 0 0 2px fade(@primary-color, 20%);
z-index: 1;
}
// 普通状态
.@{checkbox-prefix-cls} {
display: inline-block;
vertical-align: middle;
white-space: nowrap;
cursor: pointer;
outline: none;
//outline: none;
line-height: 1;
position: relative;
@ -236,13 +241,7 @@
font-size: @font-size-small;
display: inline-block;
margin-right: 8px;
outline: 0;
&:focus,
&:active {
& .@{checkbox-prefix-cls}-inner {
box-shadow: 0 0 0 2px fade(@primary-color, 20%);
}
}
//outline: none;
&-disabled{
cursor: @cursor-disabled;