Skip to content

🎥 Make videos programmatically with React

Add aria-expanded and aria-label to expand/collapse button

pullfrog[bot]fa17bf7e3360
diff --git a/packages/studio/src/components/Timeline/TimelineListItem.tsx b/packages/studio/src/components/Timeline/TimelineListItem.tsx
index 8dca9f74ff..6e497cb1c8 100644
--- a/packages/studio/src/components/Timeline/TimelineListItem.tsx
+++ b/packages/studio/src/components/Timeline/TimelineListItem.tsx
@@ -124,7 +124,13 @@ export const TimelineListItem: React.FC<{
<div style={padder} />
{sequence.parent && nestedDepth > 0 ? <div style={space} /> : null}
{visualModeEnabled ? (
- <button type="button" style={arrowStyle} onClick={onToggleExpand}>
+ <button
+ type="button"
+ style={arrowStyle}
+ onClick={onToggleExpand}
+ aria-expanded={isExpanded}
+ aria-label={`${isExpanded ? 'Collapse' : 'Expand'} track`}
+ >
<svg
width="12"
height="12"