Repository navigation
Dropdowns, tabs, theme switch, copy/share, matching fields, search results - #1
Merged
Merged
Conversation
…sults Behaviors for the patterns TagBrush.css gained, and things visitors expect on any site, all from plain HTML: - A <details> dropdown in the header nav closes on Escape, a click outside, or a chosen link; arrow keys move through it. - A link into a closed <details> (an FAQ answer) opens it. - A popover of links (a phone menu) closes when one is followed. - Tabs: role="tablist"/"tab" with aria-controls panels, arrow keys, Home, End. Every panel shows without JavaScript. - Theme switch: <select data-tag-theme> or <button data-tag-theme>, remembered, setting data-theme on <html>. - command="--copy" and command="--share". - data-tag-match keeps a confirm field invalid until it matches. - A filter box's list written `hidden` is search results: shown only while something is typed. The size ceiling goes from 8 KB to 15 KB gzipped (now 8.8 KB): coverage over bytes, as for TagBrush.css. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Behaviors for the patterns TagBrush.css gained (kovirlabs/tagbrush#44–#47) and things visitors expect on any site. Everything keys off native elements, ARIA, or
data-tag-*, and every page still works with JavaScript off.<li><details><summary>…</summary><ul>…</ul></details></li>in the page header's nav<details>are left alone<details>hashchange(FAQ deep links)<div popover>holding linksrole="tablist"+role="tab"buttons witharia-controls<select data-tag-theme>or<button data-tag-theme>data-themeon<html><button commandfor="x" command="--copy"><button commandfor="x" command="--share"><a>; copies the link where there's no share sheet<input data-tag-match="password">hiddenSize
8.8 KB gzipped (was 7.6 KB). The ceiling goes from 8 KB to 15 KB, the same coverage-over-size change TagBrush.css made, with the size reported in each release.
Not included
Live password-rule checklists (they'd need new syntax; native validation messages cover the essentials) and showing a thank-you message after a background form submit (fetch-and-swap, left to htmx by the family spec).
Follow-ups
Spec.md§5.2) lists v1 behaviors; these extend it.Checks
New fixture
tests/fixtures/extras.htmlwith tests for each behavior and the elements it must leave alone. The no-JavaScript test allows the new JS-only controls and results lists to carryhidden; thellms.txtcontract test renders every new snippet. Chromium 63 passed, WebKit 58 passed (5 Chromium-only skipped); Firefox can't launch locally, so CI is its first run.🤖 Generated with Claude Code