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

CSS selectors without class or id in v0.6.0 #330

Closed
flopail opened this issue Jul 8, 2019 · 6 comments · Fixed by #363
Closed

CSS selectors without class or id in v0.6.0 #330

flopail opened this issue Jul 8, 2019 · 6 comments · Fixed by #363
Labels

Comments

@flopail
Copy link

flopail commented Jul 8, 2019

Describe the bug:
In leaflet.distortableimage.css, several CSS selectors include only HTML tags and no cleaner selectors such as class or id. As a result, these styles sometimes override other CSS styles you have in your app or website.

Reproduce the behavior:
Have a look to leaflet.distortableimage.css in dist folder, especially these CSS selectors:

  • svg
  • td
  • th
  • kbd

Browser, version, and operating system:

  • Browsers : Firefox 67, Chrome 75
  • Leaflet DistortableImage v0.6.0
  • Operating system: Windows 10
@flopail flopail added the bug label Jul 8, 2019
@jywarren
Copy link
Member

jywarren commented Jul 8, 2019 via email

@flopail
Copy link
Author

flopail commented Jul 8, 2019

Hi @jywarren, no patch created on my side. Thanks!

@jywarren
Copy link
Member

jywarren commented Jul 8, 2019

I /think/ this will work, although I want to double check with @sashadev-sky that the existing styles are preserved. You can point at that branch in the meantime if it's urgent, but I think we can get this resolved in a few hours. Thanks again!

#331

@sashadev-sky
Copy link
Member

was svg overriding anything? I was thinking if we're mostly using svg for icons, then we should globally set it to 18px. Then in an instance where we don't want something to be 18px, we add more specific styling. Is this ok or do we not like this? I can add a comment above it in the css file explaining that?

@jywarren
Copy link
Member

jywarren commented Jul 9, 2019 via email

@sashadev-sky
Copy link
Member

@flopail all fixed :) thank you for reporting this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants