diff --git a/package.json b/package.json index 743cfb490b..cd0c709ac9 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "rc-select": "~6.0.1", "rc-slider": "~3.5.1", "rc-steps": "~1.5.2", - "rc-switch": "~1.3.2", + "rc-switch": "~1.4.0", "rc-table": "~4.0.0-beta.3", "rc-tabs": "~5.8.0", "rc-time-picker": "~1.1.0", @@ -179,4 +179,4 @@ "path": "./node_modules/cz-conventional-changelog" } } -} \ No newline at end of file +} diff --git a/style/components/switch.less b/style/components/switch.less index ad86f206a1..066f513146 100644 --- a/style/components/switch.less +++ b/style/components/switch.less @@ -37,6 +37,15 @@ transition: left @switch-duration @ease-in-out-circ; } + &:focus { + box-shadow: 0 0 0 2px tint(@primary-color, 80%); + outline: 0; + } + + &:focus:hover { + box-shadow: none; + } + &-small { height: 14px; line-height: 12px;