From a3d05baffae4b6f307354ce7925c46bedac7170a Mon Sep 17 00:00:00 2001 From: fs Date: Mon, 6 Apr 2026 22:22:00 +0200 Subject: [PATCH] feat(ui): add outline/fill icon-swap pattern for aside icon bar Introduce data-icon-swap attribute with paired outline/fill elements. CSS toggles to filled icon on hover and active state. Module slots auto-derive fill variant from icon name, with explicit icon_fill override for icons without a fill counterpart (e.g. bi-headset). Add enforcement script bin/icon-swap-check.sh. Co-Authored-By: Claude Opus 4.6 --- bin/icon-swap-check.sh | 90 +++++++++++++++++++ modules/helpdesk/module.php | 1 + .../partials/app-main-aside-icon-bar.phtml | 22 +++-- 3 files changed, 105 insertions(+), 8 deletions(-) create mode 100755 bin/icon-swap-check.sh diff --git a/bin/icon-swap-check.sh b/bin/icon-swap-check.sh new file mode 100755 index 0000000..fc9f3cd --- /dev/null +++ b/bin/icon-swap-check.sh @@ -0,0 +1,90 @@ +#!/usr/bin/env bash +# ───────────────────────────────────────────────────────────── +# icon-swap-check.sh — Enforce outline/fill icon-swap pattern +# in the aside icon bar. +# +# Every " aria-label="" - data-tooltip="" data-tooltip-pos="right"> - + data-tooltip="" data-tooltip-pos="right" data-icon-swap> + + @@ -49,8 +52,10 @@ $hasAdminPanel = layoutHasAdminPanel($layoutAuth);
  • + data-tooltip="" data-tooltip-pos="right" data-aside-shortcut="account" data-icon-swap> + + +
@@ -58,8 +63,9 @@ $hasAdminPanel = layoutHasAdminPanel($layoutAuth);