Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom stylesheets does not apply to optional field title #597

Open
lekeCoder opened this issue Dec 30, 2020 · 0 comments
Open

custom stylesheets does not apply to optional field title #597

lekeCoder opened this issue Dec 30, 2020 · 0 comments

Comments

@lekeCoder
Copy link

lekeCoder commented Dec 30, 2020

Version

Tell us which versions you are using:

  • tcomb-form-native v0.6.20
  • react-native v0.63.4

Expected behaviour

I changed the color of controlLabel normal. it applies to all field titles except optional field

Actual behaviour

Steps to reproduce

My custom stylesheet:

const Form = t.form.Form;
  const formStyles = {
    ...Form.stylesheet,
    formGroup: {
      normal: {
        marginBottom: 10
      },
    },
    controlLabel: {
      normal: {
        color: 'purple',
        fontSize: 18,
        marginBottom: 7,
        fontWeight: '500'
      },
      optional: {
        color: 'purple',
        fontSize: 18,
        marginBottom: 7,
        fontWeight: '500'
      },
      // the style applied when a validation error occours
      error: {
        color: 'red',
        fontSize: 18,
        marginBottom: 7,
        fontWeight: '300'
      }
    }
  }
![Simulator Screen Shot - iPhone 11 - 2020-12-29 at 22 31 34](https://user-images.githubusercontent.com/19432914/103330100-a2c50b80-4a25-11eb-8e3b-12ebf78ecd3a.png)


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant