Skip to content

Commit c0ba3c6

Browse files
committed
fix: remove the default body margin
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
1 parent 4f991e0 commit c0ba3c6

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/styles.css‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
@import url("https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap");
22
@import "./styles/pack-details.css";
33

4+
body {
5+
margin: 0;
6+
}
7+
48
#rs-marketplace-sketch .mp-task-choices {
59
display: grid;
610
grid-template-columns: repeat(3, minmax(0, 1fr));

‎tests/browser.mjs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ await page.route("https://fonts.googleapis.com/**", (route) =>
1616
route.fulfill({ status: 200, contentType: "text/css", body: "" }),
1717
);
1818
await page.goto(origin);
19+
assert.equal(await page.locator('body').evaluate(node => getComputedStyle(node).margin), '0px', 'The page must sit flush with the viewport.');
1920
await page
2021
.getByRole("heading", {
2122
name: "Build a register. Connect an existing system.",

0 commit comments

Comments
 (0)