fix(upload): inner anchor element may show focus-visible outline style

This commit is contained in:
07akioni 2022-06-12 21:36:03 +08:00
parent fcea87a078
commit c023232932
3 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,7 @@
- Fix `n-tree` throws error on async expanding data with `:expand-on-click="true"`, closes [#3089](https://github.com/TuSimple/naive-ui/issues/3089).
- Fix `n-slider`'s tooltip has no enter transition when it's triggered by keyboard.
- Fix `n-slider`'s mark line wrap isn't correct when it appears at right-most position.
- Fix `n-upload`'s inner anchor element may show focus-visible outline style.
### Feats

View File

@ -15,6 +15,7 @@
- 修复 `n-tree` 在设定 `expand-on-click` 之后异步展开报错,关闭 [#3089](https://github.com/TuSimple/naive-ui/issues/3089)
- 修复 `n-slider` 使用键盘聚焦触发 toolip 的时候没有动画
- 修复 `n-slider` 在 mark 出现在最右侧的时候换行不正常
- 修复 `n-upload` 内部的链接会出现原生 focus-visible 的 outline 样式
### Feats

View File

@ -73,6 +73,7 @@ export default c([
opacity: 1;
transition: opacity .3s var(--n-bezier);
`, [
c('a, img', 'outline: none;'),
cM('disabled', `
opacity: var(--n-item-disabled-opacity);
cursor: not-allowed;