Skip to content

Commit f08662b

Browse files
authored
feat: Use link colors when inline code is wrapped in links (#785)
1 parent 021c6a3 commit f08662b

File tree

5 files changed

+17
-7
lines changed

5 files changed

+17
-7
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+
# v21.1.0
6+
7+
- [Feat] The `Prose` component now supports links applied to inline code.
8+
59
# v21.0.2
610

711
- [Fix] `Tabslist`'s default space `space='xsmall'` is removed to get rid of unnecessary gap between tabs.

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": "21.0.2",
9+
"version": "21.1.0",
1010
"license": "MIT",
1111
"homepage": "https://github.com/Doist/reactist#readme",
1212
"repository": {

src/prose/prose-example.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ multiple lines. This paragraph, for instance, should be long enough to do so in
88
screen sizes that are comfortable to read anyway.
99
1010
A second paragraph now. One that contains [a link to Doist.com](https://doist.com), and text
11-
formatting examples, such as **bold text**, _italic text_, and \`monospace\`. Now let’s continue
12-
with a list:
11+
formatting examples, such as **bold text**, _italic text_, ~~strikethrough text~~ and \`monospace\`.
12+
These can also be combined, like [using _italics_, \`monospace\`, or _\`both\`_ within a link](https://en.wikipedia.org/wiki/Typography).
13+
14+
Now let’s continue with a list:
1315
1416
- this one
1517
- that one

src/prose/prose.module.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@
245245

246246
/* links */
247247

248-
.prose a {
248+
.prose a,
249+
.prose a code {
249250
color: var(--reactist-prose-link-idle-tint);
250251
text-decoration-line: underline;
251252
text-decoration-style: solid;
@@ -254,7 +255,10 @@
254255

255256
.prose a:hover,
256257
.prose a:focus,
257-
.prose a:active {
258+
.prose a:active,
259+
.prose a:hover code,
260+
.prose a:focus code,
261+
.prose a:active code {
258262
color: var(--reactist-prose-link-hover-tint);
259263
text-decoration-color: var(--reactist-prose-link-hover-underline);
260264
}

0 commit comments

Comments
 (0)