Skip to content

Commit

Permalink
Merge pull request #617 from Laravel-Backpack/fix-switch-docs
Browse files Browse the repository at this point in the history
fix switch docs
  • Loading branch information
pxpm authored Jan 6, 2025
2 parents 5ceff25 + 9e874cb commit 7497959
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 6.x/crud-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -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' => '✕',
]);
Expand Down
2 changes: 1 addition & 1 deletion 7.x-dev/crud-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -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' => '✕',
]);
Expand Down

0 comments on commit 7497959

Please sign in to comment.