Skip to content

Commit

Permalink
Fix toast long messages and update toast styles
Browse files Browse the repository at this point in the history
  • Loading branch information
marcmatias committed May 16, 2024
1 parent 123213f commit dd912aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
1 change: 1 addition & 0 deletions brasilio_auth/templates/brasilio_auth/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
placeholder="Usuário" aria-label="Usuário"
aria-describedby="Campo usuário"
required
autofocus
>
</div>
<div class="input-group input-group-lg mb-4">
Expand Down
22 changes: 8 additions & 14 deletions templates/includes/toast.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
<div
class="toast align-items-center text-white bg-{{type}} bg-gradient border-0 fw-bold p-1"
role="alert"
aria-live="assertive"
aria-atomic="true"
>
<div class="d-flex">
<div class="toast-body">{{ message }}</div>
<button
type="button"
class="btn-close btn-close-white me-2 m-auto"
data-bs-dismiss="toast"
aria-label="Close"
></button>
<div class="toast" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header">
<div class="rounded me-2 p-2 bg-{{type}}"></div>
<strong class="me-auto">Brasil.io</strong>
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body">
{{ message }}
</div>
</div>

0 comments on commit dd912aa

Please sign in to comment.