Giter VIP home page Giter VIP logo

Comments (6)

FrankHald avatar FrankHald commented on July 17, 2024

I have the same problem, did you fix it and how?

from gmaps-autocomplete-rails.

kristianmandrup avatar kristianmandrup commented on July 17, 2024

That looks like a simple CSS styling issue to me.

from gmaps-autocomplete-rails.

FrankHald avatar FrankHald commented on July 17, 2024

My application.scss looks like this:

@import "bootstrap-sprockets";
@import "_bootstrap";
@import "lightbox-bootstrap";

.nav-justified > li > a, .nav-tabs.nav-justified > li > a {
  color: black;
  text-decoration: none;
}

a {
  color: black;
  text-decoration: none;
}
a:hover {
  color: green;
  text-decoration: none;
}

How can I solve this?

from gmaps-autocomplete-rails.

FrankHald avatar FrankHald commented on July 17, 2024

It was a CSS styling issue, and I added the following to fix it:

.ui-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  float: left;
  display: none;
  min-width: 160px;
  _width: 160px;
  padding: 4px 0;
  margin: 2px 0 0 0;
  list-style: none;
  background-color: #ffffff;
  border-color: #ccc;
  border-color: rgba(0, 0, 0, 0.2);
  border-style: solid;
  border-width: 1px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  -webkit-background-clip: padding-box;
  -moz-background-clip: padding;
  background-clip: padding-box;
  *border-right-width: 2px;
  *border-bottom-width: 2px;

  .ui-menu-item > a.ui-corner-all {
    display: block;
    padding: 3px 15px;
    clear: both;
    font-weight: normal;
    line-height: 18px;
    color: #555555;
    white-space: nowrap;

    &.ui-state-focus, &.ui-state-active {
      color: #ffffff;
      text-decoration: none;
      background-color: #0088cc;
      border-radius: 0px;
      -webkit-border-radius: 0px;
      -moz-border-radius: 0px;
      background-image: none;
    }
  }
}

from gmaps-autocomplete-rails.

kristianmandrup avatar kristianmandrup commented on July 17, 2024

Thanks @FrankHald, if this is a common issue, feel free to make a PR to the README to include the CSS fix as a recipe or troubleshooting section. Cheers!

from gmaps-autocomplete-rails.

kristianmandrup avatar kristianmandrup commented on July 17, 2024

I added note to README on this issue

from gmaps-autocomplete-rails.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.