Skip to content

Commit 9290a23

Browse files
committed
feat(reset): table border-color inheritance from color
1 parent 97dc5b5 commit 9290a23

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

.changeset/afraid-squids-cross.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"css-homogenizer": minor
3+
---
4+
5+
feat(reset): table `border-color` inheritance from `color` (based upon [sindresorhus/modern-normalize#79](https://github.com/sindresorhus/modern-normalize/pull/79))

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +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.
6061

6162
Obsolete and deprecated HTML elements are ignored, as their usage is strongly discouraged.
6263

reset-scoped.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@
7777

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

8285
._th {

reset.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ a {
8282

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

8790
th {

0 commit comments

Comments
 (0)