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

Filter button stuck with french text #20

Open
fatgeekuk opened this issue Apr 30, 2018 · 3 comments
Open

Filter button stuck with french text #20

fatgeekuk opened this issue Apr 30, 2018 · 3 comments

Comments

@fatgeekuk
Copy link

Seems that no matter what the locale setting, the text for the filters button is displayed with a french legend.

@rcoproc
Copy link

rcoproc commented May 28, 2018

I have da same problem with locale pt-BR:

admin_users__active_admin

@dben89x
Copy link

dben89x commented Jun 26, 2018

Not sure how to actually fix this, but I came up with a workaround. Not my proudest moment, but it at least does the trick. Add this to the bottom of active_admin.css.scss:

#active_admin_content {
  a#diplay-filter {
    // Hide button
    visibility: hidden;
    position: relative;
    margin-bottom: 2em;

    &::after {
      // Custom CSS to create a new div on top
      content: 'Attach filters' !important;
      visibility: visible;
      position: absolute;
      left: 0;

      // Inherited from theme
      background-color: $skinActiveColor;
      padding: 7px 10px !important;
      font-weight: normal;
      text-shadow: none;
      box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 1px 0 0 rgba(255, 255, 255, 0.8);
      line-height: 12px;
      margin-right: 3px;
      display: inline-block;
      border: solid 1px #fb003d;
      font-size: 0.9em;
      text-decoration: none;
      color: #fff;
    }
  }
}

@wolflee
Copy link

wolflee commented Apr 13, 2019

I hit on the same problem here.

Actually, the issue has been fixed with 5a53d30, it's just not released.

So, the simplest solution for now would be using master branch of this repo, change the line in Gemfile like this:

gem 'active_admin_flat_skin', github: 'ayann/active_admin_flat_skin'

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

No branches or pull requests

4 participants