Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .agent/skills/basalt-html/examples/interactive.body.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ <h1>Egress cost planner</h1>

<section class="stack" aria-label="Estimate" style="--gap: var(--basalt-space-4)">
<div data-tabs>
<div class="tabs" role="tablist" aria-label="Views">
<button class="tab" role="tab" id="tab-summary" aria-controls="view-summary" aria-selected="true">Summary</button>
<button class="tab" role="tab" id="tab-breakdown" aria-controls="view-breakdown" aria-selected="false">Breakdown</button>
<button class="tab" role="tab" id="tab-json" aria-controls="view-json" aria-selected="false">JSON</button>
<div class="tabs-scroll">
<div class="tabs" role="tablist" aria-label="Views">
<button class="tab" role="tab" id="tab-summary" aria-controls="view-summary" aria-selected="true">Summary</button>
<button class="tab" role="tab" id="tab-breakdown" aria-controls="view-breakdown" aria-selected="false">Breakdown</button>
<button class="tab" role="tab" id="tab-json" aria-controls="view-json" aria-selected="false">JSON</button>
</div>
</div>

<div class="tabpanel" style="padding-top: var(--basalt-space-4)" id="view-summary" role="tabpanel" aria-labelledby="tab-summary">
Expand Down
2 changes: 1 addition & 1 deletion .agent/skills/basalt-html/parts/link-tabs.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions .agent/skills/basalt-html/parts/manifest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .agent/skills/basalt-html/parts/tabs.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .agent/skills/basalt-html/parts/tabs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .agent/skills/basalt-html/parts/usage/link-tabs.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ Tabs that are links: a `nav` of links on a hairline, one current, and under 720
- The select navigates at once and says so first: "Go to" is drawn before the current page's name (the text of `.link-tabs-select-label`; replace it there, and in the `aria-label`, which the script then keeps as those words and the chosen page's name). Only a choice from the open list navigates; a key on the closed select (a letter, an arrow, Home, End, a Page key) is held: the value goes back to the current page.
- A choice navigates to its `href`. A page that routes itself listens for `linktabsnavigate` (`detail.href`) and calls `preventDefault()`: focus then stays on the select. Otherwise a new page loads and focus starts over there.
- `data-size` is `3xl` (48) or `5xl` (56); none is 36. The row wraps and never scrolls. A 56 row is 48 in a container narrower than 640.
- Each line's first label is on the content line and the links' boxes hang into the padding: leave 12 at the box's start (14 from `3xl`). The underline is as wide as the label.
Loading
Loading