Skip to content

Commit 1691d54

Browse files
authored
Add regression test (story) for PR #133, update changelog (#135)
* Add story for PR #133 * Update changelog for 3.0.3 * Typo fix
1 parent 6fb13f9 commit 1691d54

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 3.0.3
2+
3+
### Bug Fixes
4+
5+
- Fix an edge case where the animated highlight had the wrong vertical position (#133)
6+
7+
### Thanks!
8+
9+
- @HexM7
10+
111
## 3.0.2
212

313
### Bug Fixes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-loading-skeleton",
3-
"version": "3.0.2",
3+
"version": "3.0.3",
44
"description": "Make beautiful, animated loading skeletons that automatically adapt to your app.",
55
"keywords": [
66
"react",

src/__stories__/Skeleton.stories.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,3 +367,20 @@ export const ShadowDOM: React.VFC = () => {
367367
</div>
368368
)
369369
}
370+
371+
export const RegressionTest133 = () => (
372+
<div>
373+
<p>
374+
Regression test for{' '}
375+
<a href="https://github.com/dvtng/react-loading-skeleton/pull/133">#133</a>,
376+
in which the pseudoelement had the wrong vertical position. The animated
377+
highlight should cover the entire square.
378+
</p>
379+
<div style={{ display: 'flex' }}>
380+
<Skeleton
381+
baseColor="paleturquoise"
382+
style={{ display: 'block', width: 200, height: 200 }}
383+
/>
384+
</div>
385+
</div>
386+
)

0 commit comments

Comments
 (0)