fix switch background color when none defined #5757
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#5756
Bug report
The switch background color was broken 4 days ago.
What I did
I used the switch.
What I expected to happen
It would take the default background color defined by tabler.
What happened
It shows a blank color.
What I've already tried to fix it
I fixed it already.
Is it a bug in the latest version of Backpack?
Yes.
After I run composer update backpack/crud the bug... is it still there?
Yes.
Backpack, Laravel, PHP, DB version
Latest backpack, laravel 10, php 8.
When I run php artisan backpack:version the output is:
backpack/basset: 1.3.6
backpack/crud: 6.7.50
backpack/generators: v4.0.7
backpack/medialibrary-uploaders: 1.2.1
backpack/pro: 2.2.32
backpack/theme-tabler: 1.2.17
Additional Information
There is a class switch-{{ $field['color'] }} that doesn't make sense to me, I removed it.
Here's some more info that could be helpful in reproducing or debugging:
Environment details (e.g., operating system, web server, browser): ??
Relevant error logs or screenshots (if any): ??
Note: Issues that cannot be reproduced or lack necessary details to diagnose could be closed.