From 28e3ccfde6191274b2a8e52b2fc2c945d5465801 Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Wed, 8 Mar 2023 18:25:04 +0100 Subject: [PATCH] fix(qa): increase YIQ and fix menu item title Signed-off-by: Sami Mazouz --- framework/core/js/src/common/components/LinkButton.js | 2 +- framework/core/less/common/root.less | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/core/js/src/common/components/LinkButton.js b/framework/core/js/src/common/components/LinkButton.js index 1ce560693..cde7c9d81 100644 --- a/framework/core/js/src/common/components/LinkButton.js +++ b/framework/core/js/src/common/components/LinkButton.js @@ -39,6 +39,6 @@ export default class LinkButton extends Button { * @return {boolean} */ static isActive(attrs) { - return typeof attrs.active !== 'undefined' ? attrs.active : m.route.get() === attrs.href; + return typeof attrs.active !== 'undefined' ? attrs.active : m.route.get()?.split('?')[0] === attrs.href?.split('?')[0]; } } diff --git a/framework/core/less/common/root.less b/framework/core/less/common/root.less index 16d98438e..0bafe38eb 100644 --- a/framework/core/less/common/root.less +++ b/framework/core/less/common/root.less @@ -40,7 +40,7 @@ --yiq-threshold: 108; } & when (@config-dark-mode = false) { - --yiq-threshold: 138; + --yiq-threshold: 150; } // ---------------------------------