fix(accessibility): header level increases
authorxangelo <me@xangelo.ca>
Tue, 30 Jan 2024 15:16:45 +0000 (10:16 -0500)
committerxangelo <me@xangelo.ca>
Tue, 30 Jan 2024 15:16:45 +0000 (10:16 -0500)
src/public/style.css
src/views.ts

index b79038ee4c46bc37c87d38f790bc2f3f90bd796e..50bf413cc1c20b6f1277fe87e4ab1f50f8ac3d8c 100644 (file)
@@ -1,7 +1,7 @@
 
 .item {
   .header {
-    font-size: 0.8rem;
+    font-size: 1.2rem;
     img {
       width: 18px;
       height: 18px;
index 6c33938651264317b0c4eb83d8f584ee6db9a6d0..f456ad5bffedfbcd715ad365039387e064790bd0 100644 (file)
@@ -3,12 +3,12 @@ import { FeedWithEntrySchema } from "./types";
 
 export function renderFeedItemHeader(entry: FeedWithEntrySchema): string {
 return `
-  <h5 class="header">
+  <h2 class="header">
     <img src="${entry.favicon}" alt="Favicon for ${entry.feed_title}">
     [
     <a href="${entry.feed_url}" title="${entry.feed_title}">${entry.feed_title}</a>
     ]
-  </h4>
+  </h2>
 `;
 
 }