Skip to content

ln-ashlar v2.2.7

Choose a tag to compare

@github-actions github-actions released this 23 Nov 00:34
· 16 commits to main since this release

Release: v2.2.7
Date: November 23, 2026
Summary: ln-fill reactivity and modal/dropdown styling fixes for ln-translations, keyboard-accessible wrapping pills and fieldset/legend defaults, new @mixin icon-tile / card-add / btn-header / grid-fill mixins with container-query grid support, plus root CHANGELOG.md, npm release-note packaging, and automated GitHub Releases workflow.


Overview

1. ln-translations ln-fill Integration & Dropdown/Modal Styling Fixes.

  • Added host-level ln-fill handling (components/ln-translations/src/ln-translations.js) to clear stale language fields cleanly and repopulate translations from e.detail.trans, registered in scripts/sync-ln-events.mjs, and demonstrated with a create/edit modal flow (demo/admin/src/pages/translations.html) and expanded headless tests (tests/headless/translations.mjs).
  • Enforced &:not(.open) { display: none; } on [data-ln-dropdown-menu] (components/ln-dropdown/ln-dropdown.scss), added display: block to li in theme/config/mixins/_dropdown.scss, scoped panel-header list/button selectors in theme/config/mixins/_card.scss away from nested menus/popovers and translation controls, and fixed Tailwind's [data-ln-dropdown-menu] panel selector (theme/tailwind/components.css).
  • Added vertical gap across stacked [data-ln-translatable-lang] fields, @mixin translations-header, asymmetrical padding-inline on badges, --btn-* hover/sizing fixes on translation add/remove buttons (theme/config/mixins/_translations.scss, theme/components/_translations.scss), and updated .form-element's trailing slot selector to exclude sibling select/textarea clones (theme/config/mixins/_form.scss).

2. Button Mixin Self-Inclusion & @mixin btn-header.

  • Included @include button-base directly inside @mixin btn, btn-soft, btn-ghost, btn-outline, btn-link, btn-sm, and btn-lg (theme/config/mixins/_btn.scss) so .btn* prototype classes (theme/components/_button.scss) and semantic selectors no longer require explicit @include button-base boilerplate, parameterized via --btn-gap, --btn-font-size, and --btn-line-height.
  • Added @mixin btn-header (and .btn-header) shared across <button> and <a> header actions in @mixin panel-header.

3. Cards, @mixin icon-tile, @mixin card-add, Container-Query Grids & Accessible Pills.

  • Extracted @mixin icon-tile into theme/config/mixins/_icon-tile.scss (adopted by stat-card in _stat-card.scss), added dashed empty-action tile @mixin card-add, folded --surface-highlight into --shadow on card/floating-panel, and added flush tablist and [data-ln-table-coordinator] handling inside panel-header/panel-body (theme/config/mixins/_card.scss).
  • Added @mixin grid-fill and optional $container parameter on grid, grid-2, and grid-4 for @container-driven column breakpoints (theme/config/mixins/_layout.scss), plus --max-w-container-expanded and table legend resets (theme/config/mixins/_ln-table.scss).
  • Updated @mixin pill to use visual-only hiding (position: absolute; clip-path: inset(50%)) with :focus-visible focus rings so checkboxes/radios remain keyboard-focusable (_form.scss, _popover.scss, _picklist.scss), updated pills/pills-outline to wrap cleanly, and added border-less fieldset/legend defaults (@mixin form-label-base in _form.scss, theme/components/_form.scss).

4. Changelog Generation, npm Release Visibility & Automated GitHub Releases.

  • Added scripts/sync-changelog.mjs (integrated into npm run build and npm test via sync:changelog / sync:changelog:check) generating root CHANGELOG.md from releases/ with absolute GitHub URLs.
  • Added scripts/publish-github-releases.mjs and .github/workflows/release.yml to publish GitHub Releases automatically on v* tag pushes and via manual backfill (workflow_dispatch).
  • Added CHANGELOG.md and releases/ to package.json files and added direct Releases/Changelog links at the top of README.md.