]> git.otsuka.systems Git - cotsuka.github.io/commitdiff
use a more semantic element
authorCameron Otsuka <cameron@otsuka.haus>
Thu, 16 Apr 2026 03:37:22 +0000 (23:37 -0400)
committerCameron Otsuka <cameron@otsuka.haus>
Thu, 16 Apr 2026 03:37:22 +0000 (23:37 -0400)
src/components/ui/callout.astro

index d566f0787a54bbdd90118482441370312351753e..3807941d5ee04e30127b432b656bd9d73b2b08df 100644 (file)
@@ -17,10 +17,10 @@ const calloutLabels: Record<CalloutLevel, string> = {
 const calloutLabel = label ?? calloutLabels[level];
 ---
 
-<div class={`callout callout-${level}`}>
-  <div class={`callout-label`}>{calloutLabel}</div>
+<aside class={`callout callout-${level}`}>
+  <header class={`callout-label`}>{calloutLabel}</header>
   <div class="callout-content"><slot /></div>
-</div>
+</aside>
 
 <style>
   .callout {