Improve high-contrast support for spotlight (#8948)
This commit is contained in:
parent
bb859d5886
commit
c3f26d619e
4 changed files with 122 additions and 6 deletions
|
@ -37,7 +37,7 @@ export const Option: React.FC<OptionProps> = ({ inputRef, children, endAdornment
|
|||
role="option"
|
||||
>
|
||||
{ children }
|
||||
<div className="mx_SpotlightDialog_enterPrompt" aria-hidden>↵</div>
|
||||
<kbd className="mx_SpotlightDialog_enterPrompt" aria-hidden>↵</kbd>
|
||||
{ endAdornment }
|
||||
</AccessibleButton>;
|
||||
};
|
||||
|
|
|
@ -996,10 +996,10 @@ const SpotlightDialog: React.FC<IProps> = ({ initialText = "", initialFilter = n
|
|||
<div id="mx_SpotlightDialog_keyboardPrompt">
|
||||
{ _t("Use <arrows/> to scroll", {}, {
|
||||
arrows: () => <>
|
||||
<div>↓</div>
|
||||
<div>↑</div>
|
||||
{ !filter !== null && !query && <div>←</div> }
|
||||
{ !filter !== null && !query && <div>→</div> }
|
||||
<kbd>↓</kbd>
|
||||
<kbd>↑</kbd>
|
||||
{ !filter !== null && !query && <kbd>←</kbd> }
|
||||
{ !filter !== null && !query && <kbd>→</kbd> }
|
||||
</>,
|
||||
}) }
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue