Skip to content

Commit 0bff273

Browse files
authored
chore: Fix links to Reactist components in storybook stories (#794)
1 parent 1feff1c commit 0bff273

File tree

6 files changed

+17
-6
lines changed

6 files changed

+17
-6
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.2.1
6+
7+
- [Docs] Fix links to Reactist components in storybook stories.
8+
59
# v21.2.0
610

711
- [Feat] `Textfield`, `PasswordField`, `SelectField`, and `TextArea` will now use two new CSS variables to define their border colors: `--reactist-inputs-focus`, `--reactist-inputs-idle`. If they were previously set using `--reactist-divider-primary` and `--reactist-divider-secondary`, they will continue to work as well.

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

stories/components/Dropdown.stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ export const DropdownStory = () => (
1919
<Stack as="section" exceptionallySetClassName="story" space="large">
2020
<Alert tone="critical">
2121
<strong>Deprecated:</strong> While not a 1:1 replacement, consider using{' '}
22-
<a href="/?path=/docs/components-menu">Menu</a> as an alternative
22+
<a href={`${window.location.origin}?path=/docs/components-menu`}>Menu</a> as an
23+
alternative
2324
</Alert>
2425

2526
<Dropdown.Box>

stories/components/Input.stories.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ export const InputStory = () => (
2121
<div className="story-info">
2222
<Alert tone="critical">
2323
<strong>Deprecated:</strong> Please use{' '}
24-
<a href="/?path=/docs/design-system-textfield">TextField</a> instead
24+
<a href={`${window.location.origin}?path=/docs/design-system-textfield`}>
25+
TextField
26+
</a>{' '}
27+
instead
2528
</Alert>
2629
<p>
2730
This component is a dumb wrapper around the

stories/components/Select.stories.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ export function SelectStory() {
3232
<Stack as="section" exceptionallySetClassName="story" space="large">
3333
<Alert tone="critical">
3434
<strong>Deprecated:</strong> Please use{' '}
35-
<a href="/?path=/docs/design-system-selectfield">SelectField</a> instead
35+
<a href={`${window.location.origin}?path=/docs/design-system-selectfield`}>
36+
SelectField
37+
</a>{' '}
38+
instead
3639
</Alert>
3740

3841
<Select value={value} options={options} onChange={setValue} />

0 commit comments

Comments
 (0)