Skip to content

Commit b87aedb

Browse files
authored
Merge pull request #991 from AlexVipond/fix-invisible-hr
Add border-width: 1px for horizontal rules
2 parents 70e436f + 3c2f7c8 commit b87aedb

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

__tests__/fixtures/tailwind-output-important.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,14 @@ html {
456456
border-color: #e2e8f0;
457457
}
458458

459+
/*
460+
* Ensure horizontal rules are visible by default
461+
*/
462+
463+
hr {
464+
border-width: 1px;
465+
}
466+
459467
/**
460468
* Undo the `border-style: none` reset that Normalize applies to images so that
461469
* our `border-{width}` utilities have the expected effect.

__tests__/fixtures/tailwind-output.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,14 @@ html {
456456
border-color: #e2e8f0;
457457
}
458458

459+
/*
460+
* Ensure horizontal rules are visible by default
461+
*/
462+
463+
hr {
464+
border-width: 1px;
465+
}
466+
459467
/**
460468
* Undo the `border-style: none` reset that Normalize applies to images so that
461469
* our `border-{width}` utilities have the expected effect.

src/plugins/css/preflight.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ html {
105105
border-color: theme('borderColor.default', currentColor);
106106
}
107107

108+
/*
109+
* Ensure horizontal rules are visible by default
110+
*/
111+
hr {
112+
border-width: 1px;
113+
}
114+
108115
/**
109116
* Undo the `border-style: none` reset that Normalize applies to images so that
110117
* our `border-{width}` utilities have the expected effect.

0 commit comments

Comments
 (0)