feat(a11y): visual hint for keyboard navigation (#2806)
* feat(a11y): visual hint for keyboard navigation * updaet * updaet * update --------- Co-authored-by: Paul Jankowski <8bittitan@gmail.com>
This commit is contained in:
parent
3eb3e31594
commit
f75b94c63e
4 changed files with 16 additions and 8 deletions
|
|
@ -208,7 +208,8 @@ main {
|
|||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
|
||||
}
|
||||
|
||||
.search-wrapper .DocSearch-Button:hover {
|
||||
.search-wrapper .DocSearch-Button:hover,
|
||||
.search-wrapper .DocSearch-Button:focus-visible {
|
||||
border-color: var(--demo-docsearch-button-hover-border) !important;
|
||||
box-shadow: 0 4px 12px var(--demo-docsearch-button-hover-shadow) !important;
|
||||
transform: translateY(-1px) !important;
|
||||
|
|
|
|||
|
|
@ -816,11 +816,13 @@
|
|||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.DocSearch-AskAiScreen-Sources-source a:hover {
|
||||
.DocSearch-AskAiScreen-Sources-source a:hover,
|
||||
.DocSearch-AskAiScreen-Sources-source a:focus-visible {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.DocSearch-Markdown-Content a:hover {
|
||||
.DocSearch-Markdown-Content a:hover,
|
||||
.DocSearch-Markdown-Content a:focus-visible {
|
||||
text-decoration: underline;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -145,7 +145,8 @@
|
|||
color: var(--docsearch-text-color);
|
||||
}
|
||||
|
||||
.DocSearch-Popover-Close:hover {
|
||||
.DocSearch-Popover-Close:hover,
|
||||
.DocSearch-Popover-Close:focus-visible {
|
||||
color: var(--docsearch-highlight-color);
|
||||
background: var(--docsearch-soft-primary-color);
|
||||
}
|
||||
|
|
@ -550,7 +551,8 @@
|
|||
display: none;
|
||||
}
|
||||
|
||||
.DocSearch-Action:hover {
|
||||
.DocSearch-Action:hover,
|
||||
.DocSearch-Action:focus-visible {
|
||||
color: var(--docsearch-highlight-color);
|
||||
background: var(--docsearch-soft-primary-color);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -442,7 +442,8 @@ html[data-theme='dark'] .docusaurus-highlight-code-line {
|
|||
transition: all 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
.theme-announcement-bar a:hover {
|
||||
.theme-announcement-bar a:hover,
|
||||
.theme-announcement-bar a:focus-visible {
|
||||
background-color: var(--ifm-color-primary);
|
||||
color: #fff;
|
||||
}
|
||||
|
|
@ -549,12 +550,14 @@ html[data-theme='dark'] .docsearch-logo {
|
|||
color: #fff;
|
||||
}
|
||||
|
||||
.apply-button:hover {
|
||||
.apply-button:hover,
|
||||
.apply-button:focus-visible {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* GitHub */
|
||||
.header-github-link:hover {
|
||||
.header-github-link:hover,
|
||||
.header-github-link:focus-visible {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue