Skip to content

Commit e3fdeb5

Browse files
committed
fix(reset): table border-color inheritance to enable * overrides
1 parent 7947d36 commit e3fdeb5

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.changeset/modern-shoes-compare.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"css-homogenizer": patch
3+
---
4+
5+
fix(reset): table `border-color` inheritance to enable `*` overrides (e.g. [Tailwind’s Preflight styles](https://unpkg.com/tailwindcss@%5E3/src/css/preflight.css) rely upon this)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Nullifies spacings, borders and several typography-related settings.
5757
- List (`ul`, `ol`, `menu`) and `a` elements are unstyled to promote proper HTML semantics over misleading visuals.
5858
- Form controls are unstyled to cater for overrides.
5959
- Placeholders have `opacity: 1` set for consistency between browsers.
60-
- Tables inherit their `border-color` from `color` for consistency between browsers.
60+
- Tables inherit their `border-color` for consistency between browsers.
6161

6262
Obsolete and deprecated HTML elements are ignored, as their usage is strongly discouraged.
6363

reset-scoped.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@
7777

7878
._table {
7979
border-spacing: 0;
80-
81-
/* https://github.com/sindresorhus/modern-normalize/pull/79 */
82-
border-color: currentColor;
80+
border-color: inherit;
8381
}
8482

8583
._th {

reset.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ a {
8282

8383
table {
8484
border-spacing: 0;
85-
86-
/* https://github.com/sindresorhus/modern-normalize/pull/79 */
87-
border-color: currentColor;
85+
border-color: inherit;
8886
}
8987

9088
th {

0 commit comments

Comments
 (0)