Make category tree items span full parent width (v0.1.9)
All checks were successful
Create Release Package / PHP Lint (push) Successful in 46s
Create Release Package / PHPUnit Tests (push) Successful in 51s
Create Release Package / Build Release (push) Successful in 1m3s

Move <a> elements to be direct children of the list-group so they
naturally fill the full offcanvas/sidebar width. Chevron toggle moved
inside the link with click interception to prevent navigation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-29 16:02:13 +02:00
parent 1e7f82615b
commit f64e9cd5a2
5 changed files with 48 additions and 34 deletions

View File

@@ -345,10 +345,20 @@ The child theme inherits from `wp-bootstrap` via WordPress `Template: wp-bootstr
## Version History
Current version: **v0.1.8**
Current version: **v0.1.9**
## Session History
### 2026-03-29 — v0.1.9 Category Tree Full-Width Items
**Scope:** Made category tree items span the full parent/offcanvas width.
**Files modified (3):**
- `templates/global/category-tree.html.twig` — Added `w-100` to nav and list-group containers
- `templates/global/category-tree-node.html.twig` — Made `<a>` elements direct children of the list-group; moved chevron toggle inside the link as a `<span>` with `event.preventDefault()` click interception
- `style.css` — Version bump 0.1.8 → 0.1.9
### 2026-03-29 — v0.1.8 Restyle Category Tree to Idiomatic Bootstrap
**Scope:** Restyled the category tree sidebar to use Bootstrap's native `list-group-item-action` pattern with subtler active highlighting.