Skip to content

Commit

Permalink
fix: including Lit table styles in the dom-module (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlockhart committed May 28, 2021
1 parent 681a740 commit fbea40b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions d2l-table-style.js
Expand Up @@ -2,18 +2,12 @@ import '@brightspace-ui/core/components/colors/colors.js';
import '@polymer/polymer/polymer-legacy.js';
import { tableStyles } from '@brightspace-ui/core/components/table/table-wrapper.js';

if (document.getElementById('d2l-table-style-shared') === null) {
const style = document.createElement('style');
style.id = 'd2l-table-style-shared';
style.appendChild(document.createTextNode(tableStyles.cssText));
document.head.appendChild(style);
}

const $_documentContainer = document.createElement('template');

$_documentContainer.innerHTML = `<dom-module id="d2l-table-style">
<template>
<style>
${tableStyles.cssText}
d2l-thead {
display: table-header-group;
}
Expand Down

0 comments on commit fbea40b

Please sign in to comment.