From fe20ec23a338e7539a77147073c589862b85a532 Mon Sep 17 00:00:00 2001 From: ivarsbariss Date: Thu, 26 Feb 2026 15:26:47 +0100 Subject: [PATCH] Simulate active page button style --- .../widgets/Container1/Button1.json | 2 +- .../widgets/Container1/Button1Copy.json | 8 ++++++-- .../widgets/Container1/Button1Copy2.json | 8 ++++++-- .../Sales - Units Ordered/widgets/Container1/Button1.json | 8 ++++++-- .../widgets/Container1/Button1Copy.json | 2 +- .../widgets/Container1/Button1Copy2.json | 2 +- .../Sales - Units Shipped/widgets/Container1/Button1.json | 8 ++++++-- .../widgets/Container1/Button1Copy.json | 2 +- .../widgets/Container1/Button1Copy2.json | 2 +- 9 files changed, 29 insertions(+), 13 deletions(-) diff --git a/pages/Sales - Capacity Planning/widgets/Container1/Button1.json b/pages/Sales - Capacity Planning/widgets/Container1/Button1.json index 9bbd73e..f1ddb7f 100644 --- a/pages/Sales - Capacity Planning/widgets/Container1/Button1.json +++ b/pages/Sales - Capacity Planning/widgets/Container1/Button1.json @@ -3,7 +3,7 @@ "borderRadius": "0.375rem", "bottomRow": 8, "boxShadow": "none", - "buttonColor": "{{appsmith.theme.colors.backgroundColor}}", + "buttonColor": "{{appsmith.page.name === 'Sales - Capacity Planning' ? appsmith.theme.colors.primaryColor : appsmith.theme.colors.backgroundColor}}", "buttonVariant": "PRIMARY", "disabledWhenInvalid": false, "dynamicBindingPathList": [ diff --git a/pages/Sales - Capacity Planning/widgets/Container1/Button1Copy.json b/pages/Sales - Capacity Planning/widgets/Container1/Button1Copy.json index bd9dfd8..d4d3337 100644 --- a/pages/Sales - Capacity Planning/widgets/Container1/Button1Copy.json +++ b/pages/Sales - Capacity Planning/widgets/Container1/Button1Copy.json @@ -3,10 +3,14 @@ "borderRadius": "0.375rem", "bottomRow": 12, "boxShadow": "none", - "buttonColor": "#ffffff", + "buttonColor": "{{appsmith.page.name === 'Sales - Units Shipped' ? appsmith.theme.colors.primaryColor : appsmith.theme.colors.backgroundColor}}", "buttonVariant": "PRIMARY", "disabledWhenInvalid": false, - "dynamicBindingPathList": [], + "dynamicBindingPathList": [ + { + "key": "buttonColor" + } + ], "dynamicTriggerPathList": [ { "key": "onClick" diff --git a/pages/Sales - Capacity Planning/widgets/Container1/Button1Copy2.json b/pages/Sales - Capacity Planning/widgets/Container1/Button1Copy2.json index cb4ef44..d0f31fc 100644 --- a/pages/Sales - Capacity Planning/widgets/Container1/Button1Copy2.json +++ b/pages/Sales - Capacity Planning/widgets/Container1/Button1Copy2.json @@ -3,10 +3,14 @@ "borderRadius": "0.375rem", "bottomRow": 16, "boxShadow": "none", - "buttonColor": "#ffffff", + "buttonColor": "{{appsmith.page.name === 'Sales - Units Ordered' ? appsmith.theme.colors.primaryColor : appsmith.theme.colors.backgroundColor}}", "buttonVariant": "PRIMARY", "disabledWhenInvalid": false, - "dynamicBindingPathList": [], + "dynamicBindingPathList": [ + { + "key": "buttonColor" + } + ], "dynamicTriggerPathList": [ { "key": "onClick" diff --git a/pages/Sales - Units Ordered/widgets/Container1/Button1.json b/pages/Sales - Units Ordered/widgets/Container1/Button1.json index ec9d78a..3fc6762 100644 --- a/pages/Sales - Units Ordered/widgets/Container1/Button1.json +++ b/pages/Sales - Units Ordered/widgets/Container1/Button1.json @@ -3,10 +3,14 @@ "borderRadius": "0.375rem", "bottomRow": 8, "boxShadow": "none", - "buttonColor": "#ffffff", + "buttonColor": "{{appsmith.page.name === 'Sales - Capacity Planning' ? appsmith.theme.colors.primaryColor : appsmith.theme.colors.backgroundColor}}", "buttonVariant": "PRIMARY", "disabledWhenInvalid": false, - "dynamicBindingPathList": [], + "dynamicBindingPathList": [ + { + "key": "buttonColor" + } + ], "dynamicTriggerPathList": [ { "key": "onClick" diff --git a/pages/Sales - Units Ordered/widgets/Container1/Button1Copy.json b/pages/Sales - Units Ordered/widgets/Container1/Button1Copy.json index 382cae4..722a07d 100644 --- a/pages/Sales - Units Ordered/widgets/Container1/Button1Copy.json +++ b/pages/Sales - Units Ordered/widgets/Container1/Button1Copy.json @@ -3,7 +3,7 @@ "borderRadius": "0.375rem", "bottomRow": 12, "boxShadow": "none", - "buttonColor": "{{appsmith.theme.colors.backgroundColor}}", + "buttonColor": "{{appsmith.page.name === 'Sales - Units Shipped' ? appsmith.theme.colors.primaryColor : appsmith.theme.colors.backgroundColor}}", "buttonVariant": "PRIMARY", "disabledWhenInvalid": false, "dynamicBindingPathList": [ diff --git a/pages/Sales - Units Ordered/widgets/Container1/Button1Copy2.json b/pages/Sales - Units Ordered/widgets/Container1/Button1Copy2.json index 13c1a09..add8711 100644 --- a/pages/Sales - Units Ordered/widgets/Container1/Button1Copy2.json +++ b/pages/Sales - Units Ordered/widgets/Container1/Button1Copy2.json @@ -3,7 +3,7 @@ "borderRadius": "0.375rem", "bottomRow": 16, "boxShadow": "none", - "buttonColor": "{{appsmith.theme.colors.backgroundColor}}", + "buttonColor": "{{appsmith.page.name === 'Sales - Units Ordered' ? appsmith.theme.colors.primaryColor : appsmith.theme.colors.backgroundColor}}", "buttonVariant": "PRIMARY", "disabledWhenInvalid": false, "dynamicBindingPathList": [ diff --git a/pages/Sales - Units Shipped/widgets/Container1/Button1.json b/pages/Sales - Units Shipped/widgets/Container1/Button1.json index ec9d78a..3fc6762 100644 --- a/pages/Sales - Units Shipped/widgets/Container1/Button1.json +++ b/pages/Sales - Units Shipped/widgets/Container1/Button1.json @@ -3,10 +3,14 @@ "borderRadius": "0.375rem", "bottomRow": 8, "boxShadow": "none", - "buttonColor": "#ffffff", + "buttonColor": "{{appsmith.page.name === 'Sales - Capacity Planning' ? appsmith.theme.colors.primaryColor : appsmith.theme.colors.backgroundColor}}", "buttonVariant": "PRIMARY", "disabledWhenInvalid": false, - "dynamicBindingPathList": [], + "dynamicBindingPathList": [ + { + "key": "buttonColor" + } + ], "dynamicTriggerPathList": [ { "key": "onClick" diff --git a/pages/Sales - Units Shipped/widgets/Container1/Button1Copy.json b/pages/Sales - Units Shipped/widgets/Container1/Button1Copy.json index 382cae4..722a07d 100644 --- a/pages/Sales - Units Shipped/widgets/Container1/Button1Copy.json +++ b/pages/Sales - Units Shipped/widgets/Container1/Button1Copy.json @@ -3,7 +3,7 @@ "borderRadius": "0.375rem", "bottomRow": 12, "boxShadow": "none", - "buttonColor": "{{appsmith.theme.colors.backgroundColor}}", + "buttonColor": "{{appsmith.page.name === 'Sales - Units Shipped' ? appsmith.theme.colors.primaryColor : appsmith.theme.colors.backgroundColor}}", "buttonVariant": "PRIMARY", "disabledWhenInvalid": false, "dynamicBindingPathList": [ diff --git a/pages/Sales - Units Shipped/widgets/Container1/Button1Copy2.json b/pages/Sales - Units Shipped/widgets/Container1/Button1Copy2.json index d7e51b7..0e56f0e 100644 --- a/pages/Sales - Units Shipped/widgets/Container1/Button1Copy2.json +++ b/pages/Sales - Units Shipped/widgets/Container1/Button1Copy2.json @@ -3,7 +3,7 @@ "borderRadius": "0.375rem", "bottomRow": 16, "boxShadow": "none", - "buttonColor": "{{appsmith.theme.colors.backgroundColor}}", + "buttonColor": "{{appsmith.page.name === 'Sales - Units Ordered' ? appsmith.theme.colors.primaryColor : appsmith.theme.colors.backgroundColor}}", "buttonVariant": "PRIMARY", "disabledWhenInvalid": false, "dynamicBindingPathList": [