Simulate active page button style

This commit is contained in:
ivarsbariss
2026-02-26 15:26:47 +01:00
parent 174ac2df95
commit fe20ec23a3
9 changed files with 29 additions and 13 deletions

View File

@@ -3,7 +3,7 @@
"borderRadius": "0.375rem", "borderRadius": "0.375rem",
"bottomRow": 8, "bottomRow": 8,
"boxShadow": "none", "boxShadow": "none",
"buttonColor": "{{appsmith.theme.colors.backgroundColor}}", "buttonColor": "{{appsmith.page.name === 'Sales - Capacity Planning' ? appsmith.theme.colors.primaryColor : appsmith.theme.colors.backgroundColor}}",
"buttonVariant": "PRIMARY", "buttonVariant": "PRIMARY",
"disabledWhenInvalid": false, "disabledWhenInvalid": false,
"dynamicBindingPathList": [ "dynamicBindingPathList": [

View File

@@ -3,10 +3,14 @@
"borderRadius": "0.375rem", "borderRadius": "0.375rem",
"bottomRow": 12, "bottomRow": 12,
"boxShadow": "none", "boxShadow": "none",
"buttonColor": "#ffffff", "buttonColor": "{{appsmith.page.name === 'Sales - Units Shipped' ? appsmith.theme.colors.primaryColor : appsmith.theme.colors.backgroundColor}}",
"buttonVariant": "PRIMARY", "buttonVariant": "PRIMARY",
"disabledWhenInvalid": false, "disabledWhenInvalid": false,
"dynamicBindingPathList": [], "dynamicBindingPathList": [
{
"key": "buttonColor"
}
],
"dynamicTriggerPathList": [ "dynamicTriggerPathList": [
{ {
"key": "onClick" "key": "onClick"

View File

@@ -3,10 +3,14 @@
"borderRadius": "0.375rem", "borderRadius": "0.375rem",
"bottomRow": 16, "bottomRow": 16,
"boxShadow": "none", "boxShadow": "none",
"buttonColor": "#ffffff", "buttonColor": "{{appsmith.page.name === 'Sales - Units Ordered' ? appsmith.theme.colors.primaryColor : appsmith.theme.colors.backgroundColor}}",
"buttonVariant": "PRIMARY", "buttonVariant": "PRIMARY",
"disabledWhenInvalid": false, "disabledWhenInvalid": false,
"dynamicBindingPathList": [], "dynamicBindingPathList": [
{
"key": "buttonColor"
}
],
"dynamicTriggerPathList": [ "dynamicTriggerPathList": [
{ {
"key": "onClick" "key": "onClick"

View File

@@ -3,10 +3,14 @@
"borderRadius": "0.375rem", "borderRadius": "0.375rem",
"bottomRow": 8, "bottomRow": 8,
"boxShadow": "none", "boxShadow": "none",
"buttonColor": "#ffffff", "buttonColor": "{{appsmith.page.name === 'Sales - Capacity Planning' ? appsmith.theme.colors.primaryColor : appsmith.theme.colors.backgroundColor}}",
"buttonVariant": "PRIMARY", "buttonVariant": "PRIMARY",
"disabledWhenInvalid": false, "disabledWhenInvalid": false,
"dynamicBindingPathList": [], "dynamicBindingPathList": [
{
"key": "buttonColor"
}
],
"dynamicTriggerPathList": [ "dynamicTriggerPathList": [
{ {
"key": "onClick" "key": "onClick"

View File

@@ -3,7 +3,7 @@
"borderRadius": "0.375rem", "borderRadius": "0.375rem",
"bottomRow": 12, "bottomRow": 12,
"boxShadow": "none", "boxShadow": "none",
"buttonColor": "{{appsmith.theme.colors.backgroundColor}}", "buttonColor": "{{appsmith.page.name === 'Sales - Units Shipped' ? appsmith.theme.colors.primaryColor : appsmith.theme.colors.backgroundColor}}",
"buttonVariant": "PRIMARY", "buttonVariant": "PRIMARY",
"disabledWhenInvalid": false, "disabledWhenInvalid": false,
"dynamicBindingPathList": [ "dynamicBindingPathList": [

View File

@@ -3,7 +3,7 @@
"borderRadius": "0.375rem", "borderRadius": "0.375rem",
"bottomRow": 16, "bottomRow": 16,
"boxShadow": "none", "boxShadow": "none",
"buttonColor": "{{appsmith.theme.colors.backgroundColor}}", "buttonColor": "{{appsmith.page.name === 'Sales - Units Ordered' ? appsmith.theme.colors.primaryColor : appsmith.theme.colors.backgroundColor}}",
"buttonVariant": "PRIMARY", "buttonVariant": "PRIMARY",
"disabledWhenInvalid": false, "disabledWhenInvalid": false,
"dynamicBindingPathList": [ "dynamicBindingPathList": [

View File

@@ -3,10 +3,14 @@
"borderRadius": "0.375rem", "borderRadius": "0.375rem",
"bottomRow": 8, "bottomRow": 8,
"boxShadow": "none", "boxShadow": "none",
"buttonColor": "#ffffff", "buttonColor": "{{appsmith.page.name === 'Sales - Capacity Planning' ? appsmith.theme.colors.primaryColor : appsmith.theme.colors.backgroundColor}}",
"buttonVariant": "PRIMARY", "buttonVariant": "PRIMARY",
"disabledWhenInvalid": false, "disabledWhenInvalid": false,
"dynamicBindingPathList": [], "dynamicBindingPathList": [
{
"key": "buttonColor"
}
],
"dynamicTriggerPathList": [ "dynamicTriggerPathList": [
{ {
"key": "onClick" "key": "onClick"

View File

@@ -3,7 +3,7 @@
"borderRadius": "0.375rem", "borderRadius": "0.375rem",
"bottomRow": 12, "bottomRow": 12,
"boxShadow": "none", "boxShadow": "none",
"buttonColor": "{{appsmith.theme.colors.backgroundColor}}", "buttonColor": "{{appsmith.page.name === 'Sales - Units Shipped' ? appsmith.theme.colors.primaryColor : appsmith.theme.colors.backgroundColor}}",
"buttonVariant": "PRIMARY", "buttonVariant": "PRIMARY",
"disabledWhenInvalid": false, "disabledWhenInvalid": false,
"dynamicBindingPathList": [ "dynamicBindingPathList": [

View File

@@ -3,7 +3,7 @@
"borderRadius": "0.375rem", "borderRadius": "0.375rem",
"bottomRow": 16, "bottomRow": 16,
"boxShadow": "none", "boxShadow": "none",
"buttonColor": "{{appsmith.theme.colors.backgroundColor}}", "buttonColor": "{{appsmith.page.name === 'Sales - Units Ordered' ? appsmith.theme.colors.primaryColor : appsmith.theme.colors.backgroundColor}}",
"buttonVariant": "PRIMARY", "buttonVariant": "PRIMARY",
"disabledWhenInvalid": false, "disabledWhenInvalid": false,
"dynamicBindingPathList": [ "dynamicBindingPathList": [