• Robert Knight's avatar
    Stop loading annotator.css bundle into host page · e2547867
    Robert Knight authored
    With the exception of highlight styles, the styles in annotator.css are
    now only used by UI elements contained within shadow roots. As a result,
    we can stop loading annotator.css as a stylesheet into the host page,
    preventing these styles from affecting the host page.
    
     - Stop loading annotator.css into the host page as a stylesheet.
       Instead add it as a preload link instead, ready for use by shadow
       roots.
    
     - Move highlights styles into a separate bundle and load that in the
       host page.
    
    Fixes https://github.com/hypothesis/client/issues/2979
    e2547867
Name
Last commit
Last update
..
anchoring Loading commit data...
components Loading commit data...
config Loading commit data...
integrations Loading commit data...
test Loading commit data...
util Loading commit data...
.eslintrc.js Loading commit data...
adder.js Loading commit data...
annotation-counts.js Loading commit data...
annotation-sync.js Loading commit data...
bucket-bar.js Loading commit data...
features.js Loading commit data...
frame-observer.js Loading commit data...
guest.js Loading commit data...
highlighter.js Loading commit data...
hypothesis-injector.js Loading commit data...
icons.js Loading commit data...
index.js Loading commit data...
notebook.js Loading commit data...
range-util.js Loading commit data...
selection-observer.js Loading commit data...
sidebar-trigger.js Loading commit data...
sidebar.js Loading commit data...
toolbar.js Loading commit data...