-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
#580 stylesheet registration #723
#580 stylesheet registration #723
Conversation
…ylesheet with ActiveAdmin while providing an options hash as one would normally use in layouts.
…y available options hash for CSS registration
ActiveAdmin.register Post | ||
""" | ||
When I am on the index page for posts | ||
Then I should see the css file "some-random-css.css" | ||
Then I should see the css file "some-random-css.css" of media :print |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you wrap the media parameter between double quotes? It's a convention that we'd like to see in ActiveAdmin. So the step would be:
Then I should see the css file "some-random-css.css" of media "print"
No problem, I can make those changes and update the branch sometime this week and let you know once those are in place. |
@macfanatic This is a great contribution, thank you very much for this! |
Believe this latest commit includes all requested tweaks. |
Awesome. I'll get it merged in |
Merged in to master! Thanks for the great commits @macfanatic! |
Added ActiveAdmin::Stylesheet class that allows user to register a stylesheet with ActiveAdmin while providing an options hash as one would normally use in layouts.
Example: