fix: quo2 title-input component selection style fix for android (#15717)

This commit is contained in:
Ajay Sivan 2023-05-02 17:01:09 +05:30 committed by GitHub
parent fac368521b
commit 03aac0e4ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,6 @@
(ns quo2.components.inputs.title-input.style
(:require [quo2.foundations.colors :as colors]))
(:require [quo2.foundations.colors :as colors]
[react-native.platform :as platform]))
(defn get-focused-placeholder-color
[blur? override-theme]
@ -28,9 +29,11 @@
(defn get-selection-color
[customization-color blur? override-theme]
(if blur?
(colors/theme-colors colors/neutral-100 colors/white override-theme)
(colors/custom-color customization-color (if (or (= :dark override-theme) (colors/dark?)) 60 50))))
(colors/alpha (if blur?
(colors/theme-colors colors/neutral-100 colors/white override-theme)
(colors/custom-color customization-color
(if (or (= :dark override-theme) colors/dark?) 60 50)))
(if platform/ios? 1 0.2)))
(def text-input-container {:flex 1})