Skip to content

fix: show persistent feedback for test answer selections - #209

Closed
0b10headedcalf wants to merge 1 commit into
ctrlaltwill:mainfrom
0b10headedcalf:fix/test-selection-feedback
Closed

0b10headedcalf wants to merge 1 commit into
ctrlaltwill:mainfrom
0b10headedcalf:fix/test-selection-feedback

Conversation

@0b10headedcalf

Copy link
Copy Markdown

Selecting answers in Tests updates the stored answer but the runner's default and hover styles override the selected appearance. Add scoped selected-state styling with an accent border and inset marker, preserve it on hover/focus, and expose aria-pressed for both multiple-answer and single-answer buttons.

Validation: npm run check passes. Added DOM regression tests for independent toggling, deselection, restoring selections after rerender, exclusive single-answer selection, and the computed CSS selection marker. Tested against LearnKit 1.8.1; interactive testing inside Obsidian has not been performed.

@ctrlaltwill

Copy link
Copy Markdown
Owner

Merged into main via squash-merge. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants