From 1e7f82615b1cb9df02fd301bec7902964f948251 Mon Sep 17 00:00:00 2001 From: magdev Date: Sun, 29 Mar 2026 15:42:35 +0200 Subject: [PATCH] Restyle category tree to idiomatic Bootstrap list-group pattern (v0.1.8) Switch from custom link classes to Bootstrap's native list-group-item-action pattern. Replace bold primary-colored active background with subtle tertiary background, left accent border, and semibold text. Co-Authored-By: Claude Opus 4.6 (1M context) --- CHANGELOG.md | 7 ++++ CLAUDE.md | 13 +++++++- assets/css/wc-bootstrap.css | 27 +++++---------- style.css | 2 +- templates/global/category-tree-node.html.twig | 33 ++++++++++--------- templates/global/category-tree.html.twig | 24 +++++++------- 6 files changed, 56 insertions(+), 50 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4daccc..e958251 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. +## [0.1.8] - 2026-03-29 + +### Changed + +- **Category tree restyled** (`category-tree.html.twig`, `category-tree-node.html.twig`): Switched from custom link classes to Bootstrap's native `list-group-item list-group-item-action` pattern with nested collapse divs for a more idiomatic Bootstrap look +- **Subtler active state** (`wc-bootstrap.css`): Replaced bold primary-colored background with light background (`var(--bs-tertiary-bg)`), left accent border (`3px solid var(--bs-primary)`), and semibold text for a less prominent highlight + ## [0.1.7] - 2026-03-29 ### Added diff --git a/CLAUDE.md b/CLAUDE.md index eb6f706..2438c38 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -345,10 +345,21 @@ The child theme inherits from `wp-bootstrap` via WordPress `Template: wp-bootstr ## Version History -Current version: **v0.1.7** +Current version: **v0.1.8** ## Session History +### 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. + +**Files modified (4):** + +- `templates/global/category-tree.html.twig` — Switched to `list-group-item list-group-item-action` links in a `list-group-flush` container +- `templates/global/category-tree-node.html.twig` — Replaced nested `