mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
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:
co-authored by
Claude Opus 4.6
parent
f98ddc97bc
commit
98e390f7ee
@@ -43,11 +43,23 @@ Controls the media volume level. The slider maps its 0–100 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user