Skip to content

Disable Back and Next at the ends of the tutorial - #255

Merged
hsbt merged 2 commits into
masterfrom
claude/busy-cannon-91a92b
Oct 6, 2026
Merged

hsbt merged 2 commits into
masterfrom
claude/busy-cannon-91a92b

Conversation

@hsbt

@hsbt hsbt commented Oct 6, 2026

Copy link
Copy Markdown
Member

On the first step Back stays clickable and does nothing, and so does Next on the last step, so nothing tells the reader they have reached an end. I now disable each button when there is no step to go to. The state follows every way of moving between steps: the buttons, the lesson index, a language switch, and the step restored from the cookie.

Bootstrap's .btn-primary:disabled would have turned the disabled Next blue, so the stylesheet keeps our primary color and leaves only Bootstrap's dimming.

Fixes #155

Generated with Claude Code

hsbt and others added 2 commits October 6, 2026 08:36
Bootstrap's `.btn-primary:disabled` outranks our `.btn-primary` and turns a disabled primary button blue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both stayed clickable on the first and last steps and silently did nothing there.

#155

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hsbt
hsbt merged commit 91dd343 into master Oct 6, 2026
1 check passed
@hsbt
hsbt deleted the claude/busy-cannon-91a92b branch October 6, 2026 04:44
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.

Non functioning "next" or "back" button in the last and first lessons

1 participant