Decathlon / vitamin-ios

Decathlon Design System UI components for iOS & iPadOS applications
https://www.decathlon.design
Apache License 2.0
46 stars 14 forks source link

refactor: change placeholder color #32

Closed GaspardMathon closed 2 years ago

GaspardMathon commented 2 years ago

Is your request related to a problem? Please describe.

Describe the solution you'd like

daniel-dumortier commented 2 years ago

@GaspardMathon : If you're talking about placeHolder in Vitamin text fields, I am not sure this issue is relevant. Here is a snippet of the code to put placeholder color which shows we use content tertiary (with a "disabled" opacity if the field is disabled) :

var placeholderColor: UIColor {
        if self == .disabled {
            return VitaminColor.Core.Content.tertiary.disabledColor()
        } else {
            return VitaminColor.Core.Content.tertiary
        }
    }