Add accessibility id for community unread indicators (#15485)
This commit is contained in:
parent
103e154076
commit
7ed4bc5a5c
|
@ -3,6 +3,7 @@
|
||||||
[quo2.components.common.unread-grey-dot.style :as style]))
|
[quo2.components.common.unread-grey-dot.style :as style]))
|
||||||
|
|
||||||
(defn unread-grey-dot
|
(defn unread-grey-dot
|
||||||
[]
|
[accessibility-label]
|
||||||
[rn/view
|
[rn/view
|
||||||
{:style style/unread-grey-dot}])
|
(cond-> {:style style/unread-grey-dot}
|
||||||
|
accessibility-label (assoc :accessibility-label accessibility-label :accessible true))])
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
[counter/counter {:type :default} unread-mentions-count]
|
[counter/counter {:type :default} unread-mentions-count]
|
||||||
|
|
||||||
unread-messages?
|
unread-messages?
|
||||||
[unread-grey-dot]))
|
[unread-grey-dot :unviewed-messages-public]))
|
||||||
|
|
||||||
(defn communities-list-view-item
|
(defn communities-list-view-item
|
||||||
[props
|
[props
|
||||||
|
|
|
@ -62,4 +62,4 @@
|
||||||
(not muted?)
|
(not muted?)
|
||||||
(not (pos? (int mentions-count)))
|
(not (pos? (int mentions-count)))
|
||||||
unread-messages?)
|
unread-messages?)
|
||||||
[unread-grey-dot])]]])
|
[unread-grey-dot :unviewed-messages-public])]]])
|
||||||
|
|
Loading…
Reference in New Issue