Repository navigation
Simplify Tasty anatomy and responsive states - #147
Merged
Merged
Conversation
Merged
tenphi
added a commit
that referenced
this pull request
Oct 15, 2026
#147 moved Sidebar.TopLevelSpacing and Sidebar.GroupSpacing from class and :is() selectors to the `top-level` and `section` states. Tasty compiles states to zero-specificity :where(), so both rules now tie on `ul > li + li`. Tasty emitted the zero-margin TopLevelSpacing rule last, so it won and sections lost their gap. Limit TopLevelSpacing to `top-level & !section` so the two rules can't match the same item and rule order no longer matters. This matches the spacing from before #147, and both sub-element names stay the same. Co-authored-by: Claude Opus 5.5 <[email protected]>
tenphi
added a commit
that referenced
this pull request
Oct 15, 2026
…rders (#160) - Sidebar: the next item's fill covered the lower edge of a focused link's ring. `Sidebar.InteractiveControl` now positions focus-visible controls with `z-index: 1`, so the ring draws above its neighbors. - Main content: `#main-content` (tabindex -1) receives focus when its text is clicked, and a key press then made it match :focus-visible, so keyboard scrolling drew the browser's ring around the whole article. It is a skip-link and page-swap target, not a control; drop its outline. - Pagination: #135 reduced the link's `$border-width solid #border` to a bare `borderColor` when the top-bar icon borders were removed, and #147 made it `#clear`, so links lost their resting border. Restore `border: true`. Hover only recolors, so geometry is unchanged and `theme.styles.Pagination.Link` border overrides still apply. Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Cookbook used authored classes for owned anatomy and variants, and hero actions and pagination links changed geometry on hover. Use Tasty sub-elements and data modifiers for those hooks, keep controls stationary, and give minimal actions outline geometry with
border: "#clear". Pagination reserves a transparent border before hover and recolors it without replacing configured widths or styles.Keep existing component and generated-content root classes, including
.project-notein customization examples and Logo’s rootclassprop.data-elementnow identifies anatomy only; variant classification uses modifiers such asdata-primary,data-block, anddata-heading. Update AGENTS.md and migration guidance to distinguish root hooks from anatomy and state.Simplify Markdown and related style maps:
diffandcopy-state=copiedstates.@own(:first-child)and button@own(:hover).data-not-contentisolation without affecting surrounding prose in the same Markdown root.Reduce shared aliases from 17 to 11 and unify responsive naming as
@sm(>40rem),@md(≥50rem), and@lg(≥72rem). Negation selects narrower layouts. Remove unused shell/medium-layout aliases, the redundant desktop alias, PackageVersion's single-component compact alias, and the popover alias. Popovers use native:is(:popover-open)conditions; the wrapper accommodates the pinned linter's simple pseudo-class list. Existing layout thresholds, including the exclusive 40rem boundary, are preserved. Migration guidance covers renamed style conditions and inverted custom breakpoint definitions.Upgrade the shared Tasty pin and reviewed release-age exceptions to 3.9.10, including the packed Yarn consumer fixture. The patch preserves environment checks in production consumers.
Remaining classes are permitted root hooks, Tasty-generated style hashes, and Pagefind’s unavoidable sub-element hooks. Pagefind creates and updates its own controls/results and exposes class hooks rather than configurable element identities. That exception is documented beside the integration and in the component guide.
Normalize both Shiki
classand HASTclassName: preserve custom root hooks alongsidetasty-code, and reject token classes with a modifier/customization hint. Plugin and recipe consumer checks assert alert identities and modifiers.Validation:
65daa57, including the full verification job and npm/pnpm/Yarn consumers across Linux, macOS, and Windows.pnpm lint: zero errors and warnings; full build and typecheck passed.Four additional review/fix passes covered the full PR, renderer behavior, public customization contracts, generated content, and final validation. Pagination hover and both canonical HAST class cases have regressions verified to fail before their fixes; two follow-up source reviews checked the Tasty upgrade, lockfile, packaged upstream docs, release notes, and prose-scope explanation. No outstanding findings remain.
Entropy change: Moderately Decreased for Markdown/style maintenance—owner states and shared prose conditions replace repeated structural predicates while preserving root contracts. Moderately Decreased for responsive configuration—one width scale replaces mixed device/layout names and redundant aliases; one-time consumer renames and breakpoint inversion are documented and exercised in a packed consumer. Slightly Increased for conditional variant/category override authoring—property maps must retain explicit modifier conditions to satisfy the styling architecture; the component guide and migration examples document them. Neutral for root integration, reader interaction contracts, and the shared Tasty upgrade; the pin, lockfile, packaged upstream documentation, and consumer fixture stay aligned. No unaccepted Entropy exceptions or deferred fixes remain.