From 51cbff4cca17c936ae243b2d48d68c43de2cedff Mon Sep 17 00:00:00 2001 From: Bogdan Chadkin Date: Tue, 10 Jun 2025 18:32:57 +0300 Subject: [PATCH] fix: return back box-sizing: border-box on
Accidentally removed it while refactoring preset styles. --- packages/sdk/src/__generated__/normalize.css.ts | 1 + packages/sdk/src/normalize.css | 3 +++ 2 files changed, 4 insertions(+) diff --git a/packages/sdk/src/__generated__/normalize.css.ts b/packages/sdk/src/__generated__/normalize.css.ts index 9a354d1a28c0..4f9880900841 100644 --- a/packages/sdk/src/__generated__/normalize.css.ts +++ b/packages/sdk/src/__generated__/normalize.css.ts @@ -141,6 +141,7 @@ export const body: StyleDecl[] = [ export const hr: StyleDecl[] = [ { property: "height", value: { type: "unit", unit: "number", value: 0 } }, { property: "color", value: { type: "keyword", value: "inherit" } }, + { property: "box-sizing", value: { type: "keyword", value: "border-box" } }, ]; export const b: StyleDecl[] = [ diff --git a/packages/sdk/src/normalize.css b/packages/sdk/src/normalize.css index 96185b8198dd..f5258beaa5f6 100644 --- a/packages/sdk/src/normalize.css +++ b/packages/sdk/src/normalize.css @@ -99,12 +99,15 @@ body { /** * 1. Add the correct height in Firefox. * 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655) + * 3. width: 100% inside flexbox will overflow
out of it */ hr { /* 1 */ height: 0; /* 2 */ color: inherit; + /* 3 */ + box-sizing: border-box; } /**