mirror of
https://github.com/zoriya/v10.git
synced 2026-08-05 13:48:14 +00:00
docs(site): update localized label docs (#1820)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user