dkniffin / activeadmin_reorderable

Adds drag and drop reordering to your ActiveAdmin tables
MIT License
55 stars 22 forks source link

No Mixin Named light-button #20

Closed valmirosjunior closed 1 year ago

valmirosjunior commented 1 year ago

I encountered an error when trying to use the activeadmin_reorderable gem in my ActiveAdmin project. After following the installation instructions and adding @import "activeadmin_reorderable"; as the last @import statement in my active_admin.css.scss file, I received the following error:

Error: no mixin named light-button on line 3:14 of ../usr/local/bundle/ruby/2.6.0/gems/activeadmin_reorderable-.2.1/app/assets/stylesheets/activeadmin_reorderable.scss
from line 18:9 of app/assets/stylesheets/active_admin.scss
>>     @include light-button;

Steps to Reproduce:

  1. Install the activeadmin_reorderable gem and specify the correct version in the Gemfile.
  2. Add @import "activeadmin_reorderable"; as the last @import statement in the active_admin.css.scss file.
  3. Visit an ActiveAdmin page that uses the activeadmin_reorderable functionality.

Expected Behavior:

The activeadmin_reorderable gem should work as expected without any errors, and the pages should render correctly.

Actual Behavior:

The light-button mixin is referenced in the activeadmin_reorderable.scss file but seems to be missing or undefined. This leads to the error mentioned above when trying to use the activeadmin_reorderable functionality.

Additional Information:

Notes:

I have verified that the light-button mixin is not defined in the activeadmin_reorderable gem itself. I have also checked my project's custom stylesheets and mixins, but couldn't find any reference to the light-button mixin.

Please let me know if there's any additional information or steps I can provide to help resolve this issue. Thank you!

dotsent commented 1 year ago

You need put @import "activeadmin_reorderable"; after @import "active_admin/mixins";

valmirosjunior commented 1 year ago

Thanks @dotsent