Tailwindcss: Issue with Google Map marker info windows caused by border-style: solid; on *

Created on 7 Jun 2018  路  1Comment  路  Source: tailwindlabs/tailwindcss

There looks to be an issue with https://github.com/tailwindcss/tailwindcss/pull/116 that causes a gap with Google Map markers. I removed this and the gap disappeared.

screen shot 2018-06-07 at 08 48 01

Most helpful comment

The fix here is to add your own CSS that resets border-style back to none for the map and it's children, something like:

#map * {
  border-style: none;
}

If we tried to fix this from the Tailwind side it would mean you could no longer add a border to an element just by adding the border class; instead you'd have to add border-solid border. I think writing an extra line of CSS just to undo this style for Google Maps is probably the better trade off.

If you'd prefer to choose the other side of that trade-off, just remove our preflight styles from your CSS and provide your own base styles instead 馃憤

>All comments

The fix here is to add your own CSS that resets border-style back to none for the map and it's children, something like:

#map * {
  border-style: none;
}

If we tried to fix this from the Tailwind side it would mean you could no longer add a border to an element just by adding the border class; instead you'd have to add border-solid border. I think writing an extra line of CSS just to undo this style for Google Maps is probably the better trade off.

If you'd prefer to choose the other side of that trade-off, just remove our preflight styles from your CSS and provide your own base styles instead 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AlexVipond picture AlexVipond  路  3Comments

spyric picture spyric  路  3Comments

benface picture benface  路  3Comments

chintanbanugaria picture chintanbanugaria  路  3Comments

smbdelse picture smbdelse  路  3Comments