解决按钮无障碍

This commit is contained in:
lyf
2024-08-07 13:01:08 +08:00
parent c9099ca0a5
commit 14ff46b5cd
8 changed files with 89 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ interface InputRangeProps {
min: string;
max: string;
step: string;
aria: string;
}
export function InputRange({
@@ -19,11 +20,13 @@ export function InputRange({
min,
max,
step,
aria,
}: InputRangeProps) {
return (
<div className={styles["input-range"] + ` ${className ?? ""}`}>
{title || value}
<input
aria-label={aria}
type="range"
title={title}
value={value}