docs(site): React API reference styling sections use correct selectors (#785)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Darius Cepulis
2026-03-09 20:26:00 -07:00
committed by GitHub
co-authored by Claude Opus 4.6
parent f98ddc97bc
commit 98e390f7ee
10 changed files with 221 additions and 0 deletions
@@ -43,11 +43,23 @@ Controls the media volume level. The slider maps its 0100 internal range to t
Use [CSS custom properties](#root-css-custom-properties) to style the fill and pointer levels:
<FrameworkCase frameworks={["html"]}>
```css
media-volume-slider::before {
width: calc(var(--media-slider-fill) * 1%);
}
```
</FrameworkCase>
<FrameworkCase frameworks={["react"]}>
React renders a `<div>` with the same data attributes and CSS custom properties. Add a `className` and use it as the selector:
```css
.volume-slider::before {
width: calc(var(--media-slider-fill) * 1%);
}
```
</FrameworkCase>
## Accessibility