[#14381] Wrap texts with view to ensure separate accessibility labels

This commit is contained in:
Roman Volosovskyi 2022-11-21 12:05:51 +01:00
parent e53f58d8c0
commit d18c3ad102
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
3 changed files with 8 additions and 5 deletions

View File

@ -122,9 +122,10 @@
first-initial-letter
initials)
"")]
[rn/view {:style {:width outer-dimensions
:height outer-dimensions
:border-radius outer-dimensions}}
[rn/view {:accessibility-label :user-avatar
:style {:width outer-dimensions
:height outer-dimensions
:border-radius outer-dimensions}}
(when (and ring? identicon?)
[icons/icon :i/identicon-ring {:size outer-dimensions
:no-color true}])

View File

@ -73,6 +73,7 @@
:center
[quo/button {:disabled (and (str/blank? @user-pk)
(zero? (count selected)))
:accessibility-label :share-community-link
:type :secondary
:on-press #(>evt-once
[(if can-invite?

View File

@ -290,8 +290,9 @@
(when show-key?
(let [props {:size :label
:style {:color (colors/theme-colors colors/neutral-50 colors/neutral-40)}}]
[text/text {:style {:margin-left 8
:margin-top 2}}
[rn/view {:style {:margin-left 8
:margin-top 2
:flex-direction :row}}
[text/text
(assoc props :accessibility-label :message-chat-key)
(utils/get-shortened-address (:public-key contact))]