Skip to content

Commit

Permalink
Improve accessibility of the DateInput component (#2768)
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer authored Nov 6, 2024
1 parent 76787fa commit d578758
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/great-seas-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sumup-oss/circuit-ui": patch
---

Improved the DateInput component's accessibility when empty.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export function DateSegment({
enterKeyHint="next"
spellCheck="false"
role="spinbutton"
aria-valuenow={props.value as number}
aria-valuenow={props.value || undefined}
aria-valuemin={min}
aria-valuemax={max}
aria-invalid={invalid}
Expand Down

0 comments on commit d578758

Please sign in to comment.