Commit 4365a4d2 authored by Robert Knight's avatar Robert Knight

Fix adder font family

Fix a regression after e7cdcc0d, which
added the client's standard CSS reset to the annotator CSS bundle.

The font-family used by the adder buttons was changed from the user agent's
default for `<button>` elements to `inherit` by this reset. The result
was that the font family would vary depending on the web page.

Fix this by adding a `:host > *` selector which sets style properties for all
shadow roots created by the annotator. This is the equivalent of the `body`
selector in sidebar.scss.
parent 10f3c2b3
...@@ -23,6 +23,11 @@ ...@@ -23,6 +23,11 @@
@use './components/Toolbar'; @use './components/Toolbar';
@use './components/WarningBanner'; @use './components/WarningBanner';
// Styles for all top-level elements in shadow roots.
:host > * {
font-family: var.$sans-font-family;
}
// Sidebar // Sidebar
.annotator-frame { .annotator-frame {
// frame styles // frame styles
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment