Skip to content

Commit 55af4f3

Browse files
author
sagiv.bengiat
committed
upgrade docz + fix typos and added test
1 parent 627692d commit 55af4f3

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"babel-eslint": "^9.0.0",
6262
"concurrently": "^4.1.0",
6363
"cross-env": "^5.1.4",
64-
"docz": "^2.3.0-alpha.6",
64+
"docz": "^2.3.1",
6565
"enzyme": "^3.6.0",
6666
"enzyme-adapter-react-16": "^1.5.0",
6767
"eslint": "5.12.0",

src/docs/mdx/index.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import Carousel from 'react-elastic-carousel'
4040

4141
## Styling
4242

43-
Almost every element in `react-elastic-carousel` has a css class with the `rec-` prefix (rec is short React Elastic Carousel).
43+
Almost every element in `react-elastic-carousel` has a css class with the `rec-` prefix (rec is short React Elastic Carousel).
44+
For example: `rec-arrow` for both arrow buttons or `rec-arrow-left` just for the left one.
4445

45-
For example: `rec-arrow` for both arrow buttons or `rec-arrow-left` just for the left one. [example](/styling)
46+
You can see a code example [here](/styling).

src/react-elastic-carousel/components/Track.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const Track = ({
4848
onSwipedRight={onSwipedRight}
4949
onSwipedUp={onSwipedUp}
5050
onSwipedDown={onSwipedDown}
51-
className={swipebleClassName}
51+
className={swipeableClassName}
5252
>
5353
{item}
5454
</Swipeable>

src/react-elastic-carousel/utils/__tests__/helpers.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ describe("helpers", () => {
1313
expect(css).toEqual("rec rec-test");
1414
});
1515

16+
it("cssPrefix multi keys", () => {
17+
const css = helpers.cssPrefix("test", "test2");
18+
expect(css).toEqual("rec rec-test rec-test2");
19+
});
20+
1621
it("pipe", () => {
1722
const inc = num => num + 1;
1823
const double = num => num * 2;

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6224,7 +6224,7 @@ docz-utils@^2.3.0:
62246224
unist-util-is "^3.0.0"
62256225
unist-util-visit "^1.4.1"
62266226

6227-
docz@^2.3.0-alpha.6:
6227+
docz@^2.3.1:
62286228
version "2.3.1"
62296229
resolved "https://registry.yarnpkg.com/docz/-/docz-2.3.1.tgz#931cd840e2f9a25691fb7c67fa48d4a6ef1476a3"
62306230
integrity sha512-HlbLqpizhieqvjD6xxNr6Nj8sk00vnHbLh4wHabXUpOi8ZkILBDSLmnfGzozAgmT+HN18CbszYMXCOlbcr4MXQ==

0 commit comments

Comments
 (0)