Skip to content

Commit

Permalink
Migrate to CSS modules
Browse files Browse the repository at this point in the history
  • Loading branch information
0kzh committed Sep 6, 2024
1 parent 14e4e7c commit 4c0bdbd
Show file tree
Hide file tree
Showing 20 changed files with 950 additions and 57 deletions.
4 changes: 4 additions & 0 deletions decs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module "*.module.css" {
const classes: { [key: string]: string };
export default classes;
}
2 changes: 1 addition & 1 deletion e2e/page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ test("should display highlights", async ({ page }) => {
test("should display hover tips over highlights", async ({ page }) => {
await waitForHighlights(page);
await page.hover(".Highlight .Highlight__part");
await page.waitForSelector(".PdfHighlighter__tip-container");
await page.waitForSelector("#PdfHighlighter__tip-container");
await expect(page.getByText("🔥 Flow or TypeScript?")).toBeVisible();
});
2 changes: 1 addition & 1 deletion example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"lib": ["ESNext", "DOM"],
"noEmit": true
},
"include": ["./src"]
"include": ["./src", "../decs.d.ts"]
}
Loading

0 comments on commit 4c0bdbd

Please sign in to comment.