Skip to content

Add support for negative prefixes in zIndex plugin #875

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

Merged
merged 1 commit into from
Apr 26, 2019

Conversation

adamwathan
Copy link
Member

This PR makes it possible to create classes like -z-10 using the same convention as the inset and margin plugins where config keys beginning with a - translate to classes beginning with a dash:

Example:

zIndex: {
  '-10': '-10',
}

The above config will create a class called -z-10, not z--10 like you might otherwise expect.

@adamwathan adamwathan merged commit b5165ac into next Apr 26, 2019
@adamwathan adamwathan deleted the widen-negative-value-support branch May 13, 2019 13:59
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

Successfully merging this pull request may close these issues.

1 participant