Skip to content

Commit

Permalink
[#17986] feat: add emoji-hash to text-combination
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen-ghafouri committed Nov 27, 2023
1 parent cc4290c commit a7fc30b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/quo/components/text_combinations/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@

(def description-description-text
{:margin-top 8})

(def emoji-hash
{:margin-top 8
:letter-spacing 0.5
:line-height 20.5})
10 changes: 8 additions & 2 deletions src/quo/components/text_combinations/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
description-accessibility-label
button-icon
button-on-press
customization-color]}]
customization-color
emoji-hash]}]
[rn/view {:style container-style}
[rn/view
{:style {:flex-direction :row
Expand Down Expand Up @@ -55,6 +56,11 @@
:weight :regular
:size :paragraph-1
:style style/description-description-text}
description])])
description])
(when emoji-hash
[text/text
{:number-of-lines 1
:style style/emoji-hash}
emoji-hash])])

(def view (theme/with-theme view-internal))
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
(def descriptor
[{:key :title :type :text}
{:key :avatar :type :boolean}
{:key :description
:type :text}])
{:key :description :type :text}
{:key :emoji-hash :type :text}])

(defn state->text-combinations-props
[state]
Expand All @@ -22,7 +22,8 @@
(let [state (reagent/atom {:title "Title"
:title-accessibility-label :title
:description ""
:description-accessibility-label :subtitle})]
:description-accessibility-label :subtitle
:emoji-hash "🐲🍀🎭🌟🚀🐠🌈🏰🔮🦉🐼🍉🎨🚲🌙🍔🌵"})]
(fn []
[preview/preview-container
{:state state
Expand Down

0 comments on commit a7fc30b

Please sign in to comment.