fix(docs): hide component overview search focus outline - #161
Merged
Conversation
Member
Author
Review:✅ 修复合理,可以合并(附一条 a11y 提示)选择器与上游 ant-design/x#1987 逐字一致: 两个选择器分别覆盖 Input 外层 wrapper 获焦、内部 一条非阻塞提示
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤔 本次变更属于 ...
🔗 相关 Issue
2241c95ad459d3fd95b345b14558d1c7a9eaaa9f)💡 背景与方案
组件总览页的 borderless 搜索框在聚焦时会显示与页面设计不一致的蓝色 outline。
本次在
.component-overview-search-input范围内覆盖 wrapper 自身的:focus-visible,以及内部 input 获得:focus-visible的场景。该选择器由组件总览根样式作用域限定,不影响文档站其他输入框。验证:
outline-style均为nonevp run docs:build通过vp test通过(45 files,442 tests)📝 变更日志