Commit f9ad3f11 authored by Hi-Linlin's avatar Hi-Linlin Committed by 杨奕

Tabs: add focus style (#9441)

parent e56ae9ab
...@@ -146,6 +146,7 @@ ...@@ -146,6 +146,7 @@
} }
tabList[nextIndex].focus(); // 改变焦点元素 tabList[nextIndex].focus(); // 改变焦点元素
tabList[nextIndex].click(); // 选中下一个tab tabList[nextIndex].click(); // 选中下一个tab
this.setFocus();
}, },
setFocus() { setFocus() {
this.isFocus = true; this.isFocus = true;
......
...@@ -99,6 +99,11 @@ ...@@ -99,6 +99,11 @@
outline: none; outline: none;
} }
&:focus.is-active.is-focus:not(:active) {
box-shadow: 0 0 2px 2px #409eff inset;
border-radius: 3px;
}
& .el-icon-close { & .el-icon-close {
border-radius: 50%; border-radius: 50%;
text-align: center; text-align: center;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment