Skip to content

Commit 85cf96a

Browse files
authored
Fix docs callouts and logo theming (#776)
1 parent 8ccf00d commit 85cf96a

4 files changed

Lines changed: 19 additions & 2 deletions

File tree

‎apps/docs/docs/api/configuration.mdx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ export function ScrollArea() {
5555

5656
The root must be an ancestor of the target. `scrollMargin` is not a substitute for `rootMargin`: it expands or contracts the clipping rectangles of **nested** scroll containers inside the root. Use it when an inner scroller clips the target, for example `useInView({ root, scrollMargin: "80px 0px" })`. Invalid margin syntax, invalid thresholds, iframes, and custom roots can all change what the browser considers visible.
5757

58-
> **Verify configuration:** Test real layout, scrolling, and geometry in [Vitest Browser Mode](/testing/browser-mode). Use a deterministic mock to cross a configured threshold without relying on layout; see [Mock intersections](/testing/mocking-intersections).
58+
:::note[Verify configuration]
59+
Test real layout, scrolling, and geometry in [Vitest Browser Mode](/testing/browser-mode). Use a deterministic mock to cross a configured threshold without relying on layout; see [Mock intersections](/testing/mocking-intersections).
60+
:::
5961

6062
## Stop, pause, or choose a callback API
6163

‎apps/docs/docs/api/core-apis.mdx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ description: Choose and use the three React APIs for observing elements.
1111
| `useOnInView` | You need an effect without a hook-owned state update. | A callback `ref` and your `(inView, entry)` callback. |
1212
| `<InView>` | Render props or a wrapper component fit the composition. | Render-prop fields, or a generated wrapper for plain children. |
1313

14-
> **Initial notification:** By default, the APIs suppress the observer's first `false` result. `initialInView` sets the starting state and changes how that first notification is handled. Later enter and leave transitions report both `true` and `false`.
14+
:::note[Initial notification]
15+
By default, the APIs suppress the observer's first `false` result. `initialInView` sets the starting state and changes how that first notification is handled. Later enter and leave transitions report both `true` and `false`.
16+
:::
1517

1618
The package also exposes a low-level [`observe`](#low-level-observe) function for code that already owns a DOM element.
1719

‎apps/docs/public/logo-horizontal.svg‎

Lines changed: 5 additions & 0 deletions
Loading

‎apps/docs/theme.css‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
}
1313
}
1414

15+
[data-docs-logo] path[stroke="#000"] {
16+
stroke: currentColor;
17+
}
18+
19+
[data-docs-logo] path[fill="#1a1a1a"] {
20+
fill: currentColor;
21+
}
22+
1523
@media (min-width: 30rem) and (max-width: 47.999rem) {
1624
[data-docs-logo-graphic] {
1725
display: inline-flex;

0 commit comments

Comments
 (0)