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

Add ability to style forms with namespaces #91

Merged
merged 1 commit into from
Aug 20, 2020

Conversation

josemarluedke
Copy link
Owner

@josemarluedke josemarluedke commented Aug 20, 2020

When it comes to change the icon colors using for example css variables, that doesn't work as we use inline URLs SVGs for the icons.

This PR adds the ability to specify the icon colors + the ability to add styles with a namespace, ultimately allowing us to change the icon color depending on a parent class.

Here is the config example:

{
    namespaced: {
      '.mode-dark': {
        default: {
          textarea: {
            backgroundColor: 'blue'
          },
          'checkbox, radio': {
            iconColor: 'red'
          }
        }
      }
  }
}

@josemarluedke josemarluedke added the Type: Enhancement New feature or request label Aug 20, 2020
@josemarluedke josemarluedke merged commit 7b28922 into master Aug 20, 2020
@josemarluedke josemarluedke deleted the feat/icon-color-forms branch August 20, 2020 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant