Skip to content

Commit 9e874cb

Browse files
committed
fix switch docs
1 parent 515cf94 commit 9e874cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

6.x/crud-fields.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ CRUD::field([ // Switch
883883
'label' => 'I have not read the terms and conditions and I never will',
884884

885885
// optional
886-
'color' => 'primary', // May be any bootstrap color class or an hex color
886+
'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
887887
'onLabel' => '✓',
888888
'offLabel' => '✕',
889889
]);

7.x-dev/crud-fields.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ CRUD::field([ // Switch
890890
'label' => 'I have not read the terms and conditions and I never will',
891891

892892
// optional
893-
'color' => 'primary', // May be any bootstrap color class or an hex color
893+
'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
894894
'onLabel' => '✓',
895895
'offLabel' => '✕',
896896
]);

0 commit comments

Comments
 (0)