FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[SearchBar] Allow setting textFieldHintColor and textFieldBackgroundColor via CSS · Issue #5372 · NativeScript/NativeScript · GitHub

[SearchBar] Allow setting textFieldHintColor and textFieldBackgroundColor via CSS #5372

Description

Please, provide the details below:

Tell us about the problem

Setting text-field-hint-color and text-field-background-color properties in CSS has no effect. This is because the properties are not defined as CssProperty

export const textFieldHintColorProperty = new Property<SearchBarBase, Color>({ name: "textFieldHintColor", equalityComparer: Color.equals, valueConverter: (v) => new Color(v) });
textFieldHintColorProperty.register(SearchBarBase);
export const textFieldBackgroundColorProperty = new Property<SearchBarBase, Color>({ name: "textFieldBackgroundColor", equalityComparer: Color.equals, valueConverter: (v) => new Color(v) });
textFieldBackgroundColorProperty.register(SearchBarBase);

I don't see a reason why those cannot be set up as CssProperties with the respective names so we can easily set those through css.

Which platform(s) does your issue occur on?

Both

Please provide the following version numbers that your issue occurs with:

  • CLI: 3.4.1
  • Cross-platform modules: 3.4
  • Runtime(s): 3.4.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL