• 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
..
annotator Loading commit data...
boot Loading commit data...
images/icons Loading commit data...
shared Loading commit data...
sidebar Loading commit data...
styles Loading commit data...
test-util Loading commit data...
types Loading commit data...
.eslintrc Loading commit data...
karma.config.js Loading commit data...
tsconfig.json Loading commit data...