Skip to content

Commit

Permalink
Merge pull request #238 from DissNik/1.5.x_alert
Browse files Browse the repository at this point in the history
1.5.x alert
  • Loading branch information
lee-to authored May 5, 2023
2 parents 46365f5 + 7353024 commit c3e2681
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/css/components/alerts.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
@apply grow text-2xs font-medium;

> a {
@apply font-medium text-inherit opacity-100 hover:text-inherit hover:opacity-70;
@apply font-medium text-inherit opacity-100 underline hover:text-inherit hover:opacity-70 hover:no-underline;
}
}

Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/alert.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@props([
'icon' => 'heroicons.bell-alert',
'type' => 'info',
'type' => 'default',
'removable' => false
])
<div {{ $attributes->merge(['class' => "alert alert-$type"]) }}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/layouts/shared/flash.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@if(session()->has('alert'))
<x-moonshine::alert :removable="true">
<x-moonshine::alert :removable="true" type="info">
{{ session()->get('alert') }}
</x-moonshine::alert>
@endif

0 comments on commit c3e2681

Please sign in to comment.