Skip to content

Commit

Permalink
fix: modal header accent color missing in themes
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Jan 7, 2025
1 parent 7c04e87 commit 526f7b0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

## Next Release

- Adds confirmation prompts to deleting records
- Fixes a bug where you could not delete an image used by a post by adding a database migration to set the `image_id` to null on posts when an image is deleted that is still referred to in a post
- Fixes a missing modal header accent color in themes
- Bumps dependencies

## v3.1.0 (2024-12-12)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
Expand All @@ -11,10 +12,13 @@
*/
public function up(): void
{
Schema::table('posts', function (Blueprint $table) {
$table->dropForeign('posts_image_id_foreign');
$table->foreign('image_id')->references('id')->on('images')->onDelete('set null');
});
// Don't worry about foreign key constraints for tests
if (DB::getDriverName() !== 'sqlite') {
Schema::table('posts', function (Blueprint $table) {
$table->dropForeign('posts_image_id_foreign');
$table->foreign('image_id')->references('id')->on('images')->onDelete('set null');
});
}
}

/**
Expand Down
4 changes: 4 additions & 0 deletions src/resources/sass/themes/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ a:hover {
background-color: $background-color-accent;
}

.modal-header {
background-color: $accent-color;
}

.modal-content {
background-color: $background-color;
color: $font-color;
Expand Down
2 changes: 1 addition & 1 deletion src/resources/sass/themes/golf.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Golf Theme Colors
$background-color: #d1e7dd;
$background-color-accent: #e9ecef;
$accent-color: #479f76;
$accent-color: #75b798;
$interaction-color: #198754;
$font-color: #212529;
$danger-color: #dc3545;
Expand Down

0 comments on commit 526f7b0

Please sign in to comment.