Skip to content

Commit a346c90

Browse files
fix: table style not applying
This is because in a previous patch I tried to fix it applying to all tables, but now the specifier was not correct because of leading numbers in the id.
1 parent 125d2d8 commit a346c90

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lib/core/components/blocks/table.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,12 @@ export class Table extends Component {
7777
const input = (children?.() ?? '').split('\n');
7878
const trimmed = input.map((line) => line.trim()).join('\n');
7979
const table = await Table.parser.parse(trimmed);
80-
const id = `${this.id}-container`;
80+
const id = `table-${this.id}-container`;
8181

8282
// eslint-disable-next-line no-inline-comments
8383
return /*HTML*/ `
8484
<div class="block" id="${id}">
85-
<style scoped>
86-
${Table.style(id)}
87-
</style>
85+
<style>${Table.style(id)}</style>
8886
${table}
8987
</div>
9088
`;

0 commit comments

Comments
 (0)