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

added ability to set custom styles #53

Merged
merged 1 commit into from Jun 14, 2016
Merged

added ability to set custom styles #53

merged 1 commit into from Jun 14, 2016

Conversation

FezVrasta
Copy link
Member

This PR allows 3rd party modifiers to hook inside the applyStyles modifier.

Thanks to this edit, your custom modifier can now apply custom styling to the popper element defining the CSS properties inside data.styles.

Example:

function hidePopperModifier(data) {
  data.styles.display = 'none';
  return data;
}

This should help with #52

@FezVrasta FezVrasta added the feature This would be nice to have. label Jun 14, 2016
@FezVrasta FezVrasta self-assigned this Jun 14, 2016
@FezVrasta FezVrasta merged commit f4e3659 into master Jun 14, 2016
@andresgutgon
Copy link

👏

@FezVrasta FezVrasta deleted the custom-styles branch August 8, 2016 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This would be nice to have.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants