Skip to content

Commit

Permalink
Merge pull request tailwindlabs#991 from AlexVipond/fix-invisible-hr
Browse files Browse the repository at this point in the history
Add border-width: 1px for horizontal rules
  • Loading branch information
adamwathan authored Jul 10, 2019
2 parents 70e436f + 3c2f7c8 commit b87aedb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
8 changes: 8 additions & 0 deletions __tests__/fixtures/tailwind-output-important.css
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,14 @@ html {
border-color: #e2e8f0;
}

/*
* Ensure horizontal rules are visible by default
*/

hr {
border-width: 1px;
}

/**
* Undo the `border-style: none` reset that Normalize applies to images so that
* our `border-{width}` utilities have the expected effect.
Expand Down
8 changes: 8 additions & 0 deletions __tests__/fixtures/tailwind-output.css
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,14 @@ html {
border-color: #e2e8f0;
}

/*
* Ensure horizontal rules are visible by default
*/

hr {
border-width: 1px;
}

/**
* Undo the `border-style: none` reset that Normalize applies to images so that
* our `border-{width}` utilities have the expected effect.
Expand Down
7 changes: 7 additions & 0 deletions src/plugins/css/preflight.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ html {
border-color: theme('borderColor.default', currentColor);
}

/*
* Ensure horizontal rules are visible by default
*/
hr {
border-width: 1px;
}

/**
* Undo the `border-style: none` reset that Normalize applies to images so that
* our `border-{width}` utilities have the expected effect.
Expand Down

0 comments on commit b87aedb

Please sign in to comment.