Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .chronus/changes/fix-problem-pane-2025-11-10-14-5-0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
changeKind: fix
packages:
- "@typespec/playground"
---

[a11y] Fix problem pane not usable via keyboard
2 changes: 2 additions & 0 deletions packages/playground/src/react/problem-pane/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ interface ContainerProps {
const Container = ({ children, className, status, onClick, collaped }: ContainerProps) => {
return (
<div
role="button"
tabIndex={onClick === undefined ? undefined : 0}
className={mergeClasses(
style["header"],
Expand All @@ -67,6 +68,7 @@ const Container = ({ children, className, status, onClick, collaped }: Container
className,
)}
onClick={onClick}
onKeyDown={(evt) => (evt.code === "Enter" || evt.code === "Space") && onClick?.(evt as any)}
>
<div className={style["header-content"]}>{children}</div>
<ChevronDown16Regular
Expand Down
Loading