diff --git a/.Jules/palette.md b/.Jules/palette.md new file mode 100644 index 00000000..5034b645 --- /dev/null +++ b/.Jules/palette.md @@ -0,0 +1,3 @@ +## 2024-06-12 - [Accessible Drilldown Navigation] +**Learning:** When building progressive disclosure or drilldown navigation components, visual indicators of progress are insufficient for screen reader users. The dynamic updates (like changing levels) need to be explicitly announced, and the current position within the drilldown flow must be semantically communicated. +**Action:** Always wrap drilldown breadcrumbs in a ` {/* Current Level Content */}
{current.content}
@@ -85,18 +89,18 @@ export function DrilldownNavigation({ onClick={handleBack} disabled={currentLevel === 0} className={clsx( - 'flex items-center gap-2 px-4 py-2 rounded-md text-sm font-medium transition-opacity', + 'flex items-center gap-2 px-4 py-2 rounded-md text-sm font-medium transition-opacity focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-400', 'hover:opacity-80', currentLevel === 0 ? 'opacity-50 cursor-not-allowed text-neutral-500' : 'text-neutral-300' )} > - +