Skip to content

Commit 75441cd

Browse files
authored
fix: Set <Prose> horizontal rule color to Divider/Primary (#852)
* fix: Use primary border color in Prose <hr> * refactor: Expose border color as custom CSS prop * chore: Bump version
1 parent 5c79f80 commit 75441cd

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Reactist follows [semantic versioning](https://semver.org/) and doesn't introduce breaking changes (API-wise) in minor or patch releases. However, the appearance of a component might change in a minor or patch release so keep an eye on redesigns and make sure your app still looks and feels like you expect it.
44

5+
# 26.2.4
6+
7+
- [Fix] The `Prose` component's horizontal rule color is now properly set to the primary divider color.
8+
59
# 26.2.3
610

711
- [Fix] The `Tab` component's line height is now properly set to 21px.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"email": "henning@doist.com",
77
"url": "http://doist.com"
88
},
9-
"version": "26.2.3",
9+
"version": "26.2.4",
1010
"license": "MIT",
1111
"homepage": "https://github.com/Doist/reactist#readme",
1212
"repository": {

src/prose/prose.module.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
--reactist-prose-link-idle-underline: var(--reactist-divider-primary);
99
--reactist-prose-link-hover-tint: #006f85;
1010
--reactist-prose-link-hover-underline: #006f85;
11+
12+
--reactist-prose-horizontal-rule-color: var(--reactist-divider-primary);
1113
}
1214

1315
/* Internals for spacing. These are not considered public API. */
@@ -151,7 +153,7 @@
151153
.prose hr {
152154
margin-block: var(--reactist-prose-space-2);
153155
border: none;
154-
border-top: 1px solid var(--reactist-divider-secondary);
156+
border-top: 1px solid var(--reactist-prose-horizontal-rule-color);
155157
}
156158

157159
/* blockquote */

0 commit comments

Comments
 (0)