You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* renamed onDragStart and onDragEnd
These names were misleading. They are not related in any way to React’s event types.
* allow event propagation
Not sure why we are stopping event propagation in the slider tray. We should allow events to bubble up to maximize configurability for Pure React Carousel consumers. Commenting out for now, will remove completely if no bugs arise from this change.
* Created Example 11
Created a new example carousel to demonstrait how to pass events to the Slider tray element.
* fix incorrect value for preserveAspectRatio
* removing commented-out code
* added “missing” prop types
* forgot to update tests with fakeOnDragMove, End
* rename onDragStart to fakeOnDragStart
@@ -82,36 +86,48 @@ class DevelopmentApp extends React.Component {
82
86
</p>
83
87
<p>
84
88
The components in Pure React Carousel provide the bare-minimum of styling and javascript
85
-
required to function correctly as a carousel. Just like using table HTML tags
86
-
will give you a bare-bones table that you will need to style, Pure React Carousel
87
-
requires that you provide additional styles and optional javascript in order to meet
88
-
your project's specific functionality and branding requirements.
89
+
required to function correctly as a carousel. Just like using table HTML tags will give
90
+
you a bare-bones table that you will need to style, Pure React Carousel requires that
91
+
you provide additional styles and optional javascript in order to meet your
92
+
project's specific functionality and branding requirements.
89
93
</p>
90
94
<p>
91
-
The benefit of Pure React Carousel is that our components are focused on one task:
92
-
being an WCAG accessible carousel. Besides that, our goal is to get out of your way.
95
+
The benefit of Pure React Carousel is that our components are focused on one task: being
96
+
an WCAG accessible carousel. Besides that, our goal is to get out of your way.
93
97
</p>
94
98
</div>
95
99
<divid="rw"className={s.examples}>
96
100
<divclassName={s.examplesInnerCenter}>
97
101
<h2className={s.headline}>Real World Example</h2>
98
102
<p>
99
-
Here are two examples of what can be acheived with Pure React Carousel. This is how
100
-
we use the suite of components on the Express.com website.
103
+
Here are two examples of what can be acheived with Pure React Carousel. This is how we
104
+
use the suite of components on the Express.com website.
105
+
</p>
106
+
<p>
107
+
<img
108
+
className={s.responsiveImg}
109
+
src="./media/pdp-women.gif"
110
+
alt="example of pure react carousel on the product detail page for a dress on Express.com"
111
+
/>
112
+
</p>
113
+
<p>
114
+
<img
115
+
className={s.responsiveImg}
116
+
src="./media/pdp-men.gif"
117
+
alt="example of pure react carousel on the product detail page for a shirt on Express.com"
118
+
/>
101
119
</p>
102
-
<p><imgclassName={s.responsiveImg}src="./media/pdp-women.gif"alt="example of pure react carousel on the product detail page for a dress on Express.com"/></p>
103
-
<p><imgclassName={s.responsiveImg}src="./media/pdp-men.gif"alt="example of pure react carousel on the product detail page for a shirt on Express.com"/></p>
0 commit comments