[#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,7 +122,8 @@
first-initial-letter first-initial-letter
initials) initials)
"")] "")]
[rn/view {:style {:width outer-dimensions [rn/view {:accessibility-label :user-avatar
:style {:width outer-dimensions
:height outer-dimensions :height outer-dimensions
:border-radius outer-dimensions}} :border-radius outer-dimensions}}
(when (and ring? identicon?) (when (and ring? identicon?)

View File

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

View File

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