mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
fix(app): hide decorative country and region flags from screen readers (#1917)
This commit is contained in:
1 parent
9efd2b0a73
commit
37f46fc62d
5 files changed
+5
No files matched your search
@@ -99,6 +99,7 @@ const renderCountryOption = (option: CountrySelectOption) => {
|
||||
<img
|
||||
src={flagUrl}
|
||||
alt={countryName}
|
||||
aria-hidden={true}
|
||||
className={styles.flagImage}
|
||||
data-flx="user.phone-add-modal.country-option.flag-image"
|
||||
/>
|
||||
|
||||
@@ -198,6 +198,7 @@ export const LanguageSelector = observer(function LanguageSelector({
|
||||
<img
|
||||
src={flagUrl}
|
||||
alt={`${option.name} flag`}
|
||||
aria-hidden={true}
|
||||
className={styles.flagImage}
|
||||
draggable={false}
|
||||
data-flx="user.language-selector.render-language-content.flag-image"
|
||||
|
||||
Reference in new issue
Block a user