Tooltip styling hijacked by page styling

To get your bug fixed faster please try to answer the following questions:

  1. Which browser, operating system and versions of those are you using?
    OS: MacOS Monterey 12.3
    Browser: Firefox Nightly 102.a (but this has been replicable for a few versions)

  2. Which version of Memex are you running?
    Memex: 3.2.14

  3. What are the steps you took that lead to the bug?

  1. Visit a website that overrides the styling of the memex tooltip, for example Boston Review
  2. Highlight some text.
  3. See the tooltip buttons taking styling from the page, including making the buttons too large.

Possible solution: better encapsulation of the styling used by the memex DOM elements either by using a styling reset within the root of the memex element and using shadow DOM (Haven’t worked a lot with the shadow DOM so tell me if that’s not possible) or prepending all css selectors with an id selector to beat the specificity algorithm.

EDIT:

Adding some screenshots. It seems the button styling is overriden by a global button style from the website:

Thanks a lot for the note! Fixed and goes out with the next release!

1 Like