From 9e874cbe6e29ac04963235cd5fda2ce4bf6eb4ad Mon Sep 17 00:00:00 2001 From: pxpm Date: Wed, 18 Dec 2024 10:50:44 +0000 Subject: [PATCH] fix switch docs --- 6.x/crud-fields.md | 2 +- 7.x-dev/crud-fields.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/6.x/crud-fields.md b/6.x/crud-fields.md index 468aa21b..b054b92e 100644 --- a/6.x/crud-fields.md +++ b/6.x/crud-fields.md @@ -883,7 +883,7 @@ CRUD::field([ // Switch 'label' => 'I have not read the terms and conditions and I never will', // optional - 'color' => 'primary', // May be any bootstrap color class or an hex color + 'color' => '#232323', // in CoreUI v2 theme you can also specify bootstrap colors, like `primary`, `danger`, `success`, etc You can also overwrite the `--bg-switch-checked-color` css variable to change the color of the switch when it's checked 'onLabel' => '✓', 'offLabel' => '✕', ]); diff --git a/7.x-dev/crud-fields.md b/7.x-dev/crud-fields.md index fed013a9..2dfe9206 100644 --- a/7.x-dev/crud-fields.md +++ b/7.x-dev/crud-fields.md @@ -890,7 +890,7 @@ CRUD::field([ // Switch 'label' => 'I have not read the terms and conditions and I never will', // optional - 'color' => 'primary', // May be any bootstrap color class or an hex color + 'color' => '#232323', // in CoreUI v2 theme you can also specify bootstrap colors, like `primary`, `danger`, `success`, etc You can also overwrite the `--bg-switch-checked-color` css variable to change the color of the switch when it's checked 'onLabel' => '✓', 'offLabel' => '✕', ]);