Skip to content

Commit

Permalink
feat(reset): table border-color inheritance from color
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Aug 22, 2024
1 parent 97dc5b5 commit 9290a23
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-squids-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"css-homogenizer": minor
---

feat(reset): table `border-color` inheritance from `color` (based upon [sindresorhus/modern-normalize#79](https://github.com/sindresorhus/modern-normalize/pull/79))
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Nullifies spacings, borders and several typography-related settings.
- List (`ul`, `ol`, `menu`) and `a` elements are unstyled to promote proper HTML semantics over misleading visuals.
- Form controls are unstyled to cater for overrides.
- Placeholders have `opacity: 1` set for consistency between browsers.
- Tables inherit their `border-color` from `color` for consistency between browsers.

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

Expand Down
3 changes: 3 additions & 0 deletions reset-scoped.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@

._table {
border-spacing: 0;

/* https://github.com/sindresorhus/modern-normalize/pull/79 */
border-color: currentColor;
}

._th {
Expand Down
3 changes: 3 additions & 0 deletions reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ a {

table {
border-spacing: 0;

/* https://github.com/sindresorhus/modern-normalize/pull/79 */
border-color: currentColor;
}

th {
Expand Down

0 comments on commit 9290a23

Please sign in to comment.