docs(site): update localized label docs (#1820)

This commit is contained in:
Sam Potts
2026-07-15 12:47:47 -07:00
committed by GitHub
parent 07cbd16a35
commit 661f614234
3 changed files with 3 additions and 3 deletions
@@ -89,7 +89,7 @@ media-play-button:not([data-started]) .play-icon { display: none; }
## Accessibility
Renders a `<button>` element with an automatic `aria-label` that updates based on state: "Play", "Pause", or "Replay". Override with the `label` prop (accepts a string or function). Keyboard activation: <kbd>Enter</kbd> / <kbd>Space</kbd>.
Renders a `<button>` element with an automatic `aria-label` that updates based on state: "Play", "Pause", or "Replay". Override with the `label` prop, which accepts a translation key, custom string, or function returning either. Keyboard activation: <kbd>Enter</kbd> / <kbd>Space</kbd>.
## Examples
@@ -83,7 +83,7 @@ media-time-slider[data-seeking] {
## Accessibility
Renders with `role="slider"` and automatic `aria-label` of "Seek". Override with the `label` prop. Keyboard controls:
Renders with `role="slider"` and an automatic `aria-label` that resolves to "Seek" from the active locale. Override with the `label` prop. Keyboard controls:
- <kbd>Arrow Left</kbd> / <kbd>Arrow Right</kbd>: step by `step` increment
- <kbd>Page Up</kbd> / <kbd>Page Down</kbd>: step by `largeStep` increment
@@ -63,7 +63,7 @@ React renders a `<div>` element. Add a `className` to style it:
## Accessibility
Renders with `role="slider"` and automatic `aria-label` of "Volume". Override with the `label` prop. Keyboard controls:
Renders with `role="slider"` and an automatic `aria-label` that resolves to "Volume" from the active locale. Override with the `label` prop. Keyboard controls:
- <kbd>Arrow Left</kbd> / <kbd>Arrow Right</kbd>: step by `step` increment
- <kbd>Page Up</kbd> / <kbd>Page Down</kbd>: step by `largeStep` increment