Skip to content

Commit 0301f17

Browse files
committed
Tweak wording
1 parent 471f08a commit 0301f17

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
case their device hides scrollbars.
55
- Uses
66
[Intersection Observer](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver)
7-
for great performance – no listening for `scroll` or `resize` events.
7+
for performance and accuracy – no listening for `scroll` or `resize` events.
88
- Flexible: render any style of indicator you want (shadows, arrows, messages,
99
etc.) wherever you want, using any styling solution.
1010

@@ -86,8 +86,8 @@ return (
8686

8787
### Overflow
8888

89-
The overflow state provider. At a minimum it must contain a `<Overflow.Content>`
90-
element, otherwise it will do nothing.
89+
The overflow state provider. At a minimum it must contain an
90+
`<Overflow.Content>` element, otherwise it will do nothing.
9191

9292
```jsx
9393
<Overflow>
@@ -129,7 +129,7 @@ const MyContainer = styled(Overflow)`
129129
<td valign="top" align="right" rowspan="1"></td>
130130
<td valign="top" valign="top" rowspan="1">
131131

132-
Elements to render inside the outer container. This should include a
132+
Elements to render inside the outer container. This should include an
133133
`<Overflow.Content>` element at a minimum, but should also include your scroll
134134
indicators if you’d like to overlay them on the scrollable viewport.
135135

@@ -171,7 +171,7 @@ lot of padding and scrolling close enough to the edge should be good enough.
171171

172172
Wrapper for content to render inside the scrollable viewport. This element will
173173
grow to whatever size it needs to hold its content, and will cause the parent
174-
viewport element to overflow. It must be rendered inside a `<Overflow>`
174+
viewport element to overflow. It must be rendered inside an `<Overflow>`
175175
ancestor.
176176

177177
#### Props
@@ -203,7 +203,7 @@ Content to render inside the scrollable viewport.
203203

204204
A helper component for rendering your custom indicator when the viewport is
205205
scrollable in a particular direction (or any direction). Must be rendered inside
206-
a `<Overflow>` ancestor.
206+
an `<Overflow>` ancestor.
207207

208208
You can provide a `direction` prop to indicate when scrolling is allowed in a
209209
particular direction:

src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function getInitialState() {
6363
const emptyStyle = {};
6464

6565
/**
66-
* The overflow state provider. At a minimum it must contain a
66+
* The overflow state provider. At a minimum it must contain an
6767
* `<Overflow.Content>` element, otherwise it will do nothing.
6868
*
6969
* ```jsx
@@ -138,7 +138,7 @@ export default function Overflow({
138138

139139
Overflow.propTypes = {
140140
/**
141-
* Elements to render inside the outer container. This should include a
141+
* Elements to render inside the outer container. This should include an
142142
* `<Overflow.Content>` element at a minimum, but should also include your
143143
* scroll indicators if you’d like to overlay them on the scrollable viewport.
144144
*/
@@ -162,7 +162,7 @@ Overflow.propTypes = {
162162
/**
163163
* Wrapper for content to render inside the scrollable viewport. This element
164164
* will grow to whatever size it needs to hold its content, and will cause the
165-
* parent viewport element to overflow. It must be rendered inside a
165+
* parent viewport element to overflow. It must be rendered inside an
166166
* `<Overflow>` ancestor.
167167
*/
168168
function OverflowContent({ children, style: styleProp, ...rest }) {
@@ -281,7 +281,7 @@ OverflowContent.propTypes = {
281281
/**
282282
* A helper component for rendering your custom indicator when the viewport is
283283
* scrollable in a particular direction (or any direction). Must be rendered
284-
* inside a `<Overflow>` ancestor.
284+
* inside an `<Overflow>` ancestor.
285285
*
286286
* You can provide a `direction` prop to indicate when scrolling is allowed in
287287
* a particular direction:

0 commit comments

Comments
 (0)