From 4e03a78ddc4f014e33befe4ce40c436b0bf79cb5 Mon Sep 17 00:00:00 2001 From: Aron Date: Wed, 8 May 2024 10:04:00 +0800 Subject: [PATCH] Fix: Certain compilers translate `0 solid` to `0solid` --- packages/core/README.md | 3 ++- packages/core/remove-default-borders.css | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/core/README.md b/packages/core/README.md index a3caaf6..237699c 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -68,7 +68,8 @@ - Antialiased font smoothing looks great - Set most tags to `margin: 0` and `padding: 0` - Globaly `box-sizing: border-box` -- Globaly `border: 0` +- Globaly `border-width: 0` +- Globaly `border-style: solid` - Set controls `color: inherit` - Set `a, button, [role=button], [type=button]` property `cursor: pointer` - `line-height: 1.2` diff --git a/packages/core/remove-default-borders.css b/packages/core/remove-default-borders.css index aad883f..9466003 100644 --- a/packages/core/remove-default-borders.css +++ b/packages/core/remove-default-borders.css @@ -1,3 +1,4 @@ *, ::before, ::after { - border: 0 solid; + border-width: 0; + border-style: solid; } \ No newline at end of file