From 9d0bc5a8654953755d3129fefd390110d6365307 Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Thu, 6 Aug 2026 09:25:43 +0200 Subject: [PATCH] Charging plan: make strategy settings discoverable (#32452) --- assets/css/app.css | 13 +- .../ChargingPlans/PlanStaticSettings.vue | 5 +- .../components/ChargingPlans/PlanStrategy.vue | 184 +++++++++++++----- .../ChargingPlans/PlansRepeatingSettings.vue | 2 +- .../ChargingPlans/PlansSettings.vue | 36 ++-- i18n/de.json | 15 +- i18n/en.json | 15 +- tests/plan.spec.ts | 71 ++++--- 8 files changed, 232 insertions(+), 109 deletions(-) diff --git a/assets/css/app.css b/assets/css/app.css index ede507141..701f1cf32 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -847,7 +847,7 @@ input::-webkit-date-and-time-value { .collapsible-wrapper { display: grid; grid-template-rows: 0fr; - transition: grid-template-rows var(--evcc-transition-fast) ease 0.2s; + transition: grid-template-rows var(--evcc-transition-fast) ease var(--evcc-transition-fast); } .collapsible-wrapper.open { @@ -858,12 +858,19 @@ input::-webkit-date-and-time-value { .collapsible-content { overflow: hidden; opacity: 0; - transition: opacity 0.2s ease; + /* keep hidden content non-interactive and out of the a11y tree */ + visibility: hidden; + transition: + opacity var(--evcc-transition-fast) ease, + visibility var(--evcc-transition-fast) ease; } .collapsible-wrapper.open .collapsible-content { opacity: 1; - transition: opacity var(--evcc-transition-fast) ease 0.2s; + visibility: visible; + transition: + opacity var(--evcc-transition-fast) ease var(--evcc-transition-fast), + visibility var(--evcc-transition-fast) ease var(--evcc-transition-fast); } .sticky-bottom { diff --git a/assets/js/components/ChargingPlans/PlanStaticSettings.vue b/assets/js/components/ChargingPlans/PlanStaticSettings.vue index 32f614119..89266931c 100644 --- a/assets/js/components/ChargingPlans/PlanStaticSettings.vue +++ b/assets/js/components/ChargingPlans/PlanStaticSettings.vue @@ -1,5 +1,5 @@