A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(app): hide decorative country and region flags from screen readers (#1917)
Hampus37f46fc62dd2
diff --git a/fluxer_app/src/features/auth/components/modals/required_action/RequiredActionPhone.tsx b/fluxer_app/src/features/auth/components/modals/required_action/RequiredActionPhone.tsxindex 5ec979dfe..9b3f450d4 100644--- a/fluxer_app/src/features/auth/components/modals/required_action/RequiredActionPhone.tsx+++ b/fluxer_app/src/features/auth/components/modals/required_action/RequiredActionPhone.tsx@@ -94,6 +94,7 @@ const renderCountryOption = (option: CountrySelectOption) => {<imgsrc={flagUrl}alt={countryName}+ aria-hidden={true}className={styles.countryFlag}data-flx="auth.required-action-modal.country-option.country-flag"/>diff --git a/fluxer_app/src/features/channel/components/modals/channel_tabs/channel_overview_tab/RtcRegionSelect.tsx b/fluxer_app/src/features/channel/components/modals/channel_tabs/channel_overview_tab/RtcRegionSelect.tsxindex c4c2938b7..b55f83cd7 100644--- a/fluxer_app/src/features/channel/components/modals/channel_tabs/channel_overview_tab/RtcRegionSelect.tsx+++ b/fluxer_app/src/features/channel/components/modals/channel_tabs/channel_overview_tab/RtcRegionSelect.tsx@@ -53,6 +53,7 @@ export const RtcRegionSelect: React.FC<RtcRegionSelectProps> = observer(({form,<imgsrc={emojiUrl}alt={displayName}+ aria-hidden={true}className={styles.regionEmoji}data-flx="channel.channel-tabs.channel-overview-tab.rtc-region-option.region-emoji"/>diff --git a/fluxer_app/src/features/user/components/modals/PhoneAddModal.tsx b/fluxer_app/src/features/user/components/modals/PhoneAddModal.tsxindex d5a4de12c..e2cc8d402 100644--- a/fluxer_app/src/features/user/components/modals/PhoneAddModal.tsx+++ b/fluxer_app/src/features/user/components/modals/PhoneAddModal.tsx@@ -99,6 +99,7 @@ const renderCountryOption = (option: CountrySelectOption) => {<imgsrc={flagUrl}alt={countryName}+ aria-hidden={true}className={styles.flagImage}data-flx="user.phone-add-modal.country-option.flag-image"/>diff --git a/fluxer_app/src/features/user/components/modals/tabs/LanguageTab.tsx b/fluxer_app/src/features/user/components/modals/tabs/LanguageTab.tsxindex 01e5db6a9..9be46b152 100644--- a/fluxer_app/src/features/user/components/modals/tabs/LanguageTab.tsx+++ b/fluxer_app/src/features/user/components/modals/tabs/LanguageTab.tsx@@ -198,6 +198,7 @@ export const LanguageSelector = observer(function LanguageSelector({<imgsrc={flagUrl}alt={`${option.name} flag`}+ aria-hidden={true}className={styles.flagImage}draggable={false}data-flx="user.language-selector.render-language-content.flag-image"diff --git a/fluxer_app/src/features/voice/components/VoiceRegionSelector.tsx b/fluxer_app/src/features/voice/components/VoiceRegionSelector.tsxindex 6c8b11b1c..1e77abc43 100644--- a/fluxer_app/src/features/voice/components/VoiceRegionSelector.tsx+++ b/fluxer_app/src/features/voice/components/VoiceRegionSelector.tsx@@ -132,6 +132,7 @@ export function VoiceRegionSelector({channelId, currentRegion, compact = false}:<imgsrc={emojiUrl}alt={option.label}+ aria-hidden={true}className={styles.regionEmoji}data-flx="voice.voice-region-selector.render-region-option.region-emoji"/>