Improve high-contrast support for spotlight (#8948)

This commit is contained in:
Janne Mareike Koschinski 2022-06-30 16:17:30 +02:00 committed by GitHub
parent bb859d5886
commit c3f26d619e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 122 additions and 6 deletions

View file

@ -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>;
};

View file

@ -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>