fix: Callout accessibility and margin bottom

This commit is contained in:
George Cushen 2024-05-06 23:13:48 +01:00
commit 4a22c57dc3

View file

@ -10,7 +10,7 @@
*/}} */}}
{{ $icon := "information-circle" }} {{ $icon := "information-circle" }}
{{ $class := "bg-primary-100 dark:bg-primary-900" }} {{ $class := "bg-primary-100 dark:bg-primary-900" }}
{{ $class_text := "text-primary-400" }} {{ $class_text := "text-primary-600 dark:text-primary-300" }}
{{ with (.Get 0) }} {{ with (.Get 0) }}
{{ if eq . "note" }} {{ if eq . "note" }}
{{ $icon = "information-circle" }} {{ $icon = "information-circle" }}
@ -22,7 +22,7 @@
{{ $icon = . }} {{ $icon = . }}
{{end}} {{end}}
{{end}} {{end}}
<div class="flex px-4 py-3 rounded-md {{$class}}"> <div class="flex px-4 py-3 mb-6 rounded-md {{$class}}">
<span class="pr-3 pt-1 {{$class_text}}"> <span class="pr-3 pt-1 {{$class_text}}">
{{ partial "functions/get_icon" (dict "name" $icon "attributes" "height=\"24\"") }} {{ partial "functions/get_icon" (dict "name" $icon "attributes" "height=\"24\"") }}
</span> </span>