fix(dialog.liquid + header.liquid): add missing aria-label attribute to open and close buttons; fix header image dimensions

This commit is contained in:
Cory Dransfeldt 2025-04-22 07:35:48 -07:00
parent 5d956c60d5
commit cf3dac8a46
8 changed files with 20 additions and 7 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "2.1.3", "version": "2.1.4",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "coryd.dev", "name": "coryd.dev",
"version": "2.1.3", "version": "2.1.4",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"html-minifier-terser": "7.2.0", "html-minifier-terser": "7.2.0",

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "2.1.3", "version": "2.1.4",
"description": "The source for my personal site. Built using 11ty (and other tools).", "description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module", "type": "module",
"engines": { "engines": {

View file

@ -19,6 +19,7 @@
img { img {
max-width: calc(var(--sizing-3xl) * 1.25); max-width: calc(var(--sizing-3xl) * 1.25);
height: auto;
} }
span { span {

View file

@ -6,11 +6,11 @@
{%- endif -%} {%- endif -%}
{%- endcapture -%} {%- endcapture -%}
{% assign dialogId = id | default:"dialog-controls" %} {% assign dialogId = id | default:"dialog-controls" %}
<button class="dialog-open client-side" data-dialog-trigger="{{ dialogId }}" data-dialog-button> <button class="dialog-open client-side" aria-label="{{ label }}" data-dialog-trigger="{{ dialogId }}" data-dialog-button>
{{ labelContent }} {{ labelContent }}
</button> </button>
<dialog id="dialog-{{ dialogId }}" class="client-side"> <dialog id="dialog-{{ dialogId }}" class="client-side">
<button class="dialog-close" data-dialog-button> <button class="dialog-close" aria-label="Close dialog" data-dialog-button>
{% tablericon "circle-x" %} {% tablericon "circle-x" %}
</button> </button>
{{ content }} {{ content }}

View file

@ -5,7 +5,7 @@
{{ globals.cdn_url }}{{ image }}?class=bannerbase&type=webp 1024w {{ globals.cdn_url }}{{ image }}?class=bannerbase&type=webp 1024w
" "
sizes="(max-width: 450px) 256px, sizes="(max-width: 450px) 256px,
(max-width: 850px) 512px (max-width: 850px) 512px,
1024px" 1024px"
src="{{ globals.cdn_url }}{{ image }}?class=bannersm&type=webp" src="{{ globals.cdn_url }}{{ image }}?class=bannersm&type=webp"
alt="{{ alt | replaceQuotes }}" alt="{{ alt | replaceQuotes }}"

View file

@ -18,6 +18,7 @@
{% assign notes = item.notes | prepend: "### Notes\n" | markdown %} {% assign notes = item.notes | prepend: "### Notes\n" | markdown %}
{% render "blocks/dialog.liquid", {% render "blocks/dialog.liquid",
icon:"info-circle", icon:"info-circle",
label:"View info about this concert"
content:notes, content:notes,
id:item.content_date id:item.content_date
%} %}

View file

@ -1,5 +1,15 @@
{%- capture headerContent -%} {%- capture headerContent -%}
<img class="icon" src="{{ globals.cdn_url }}{{ globals.avatar_header }}?class=w200&v={% appVersion %}" alt="{{ globals.site_name }}" /> <img
srcset="
{{ globals.cdn_url }}{{ globals.avatar_header }}?class=w100&v={% appVersion %} 100w,
{{ globals.cdn_url }}{{ globals.avatar_header }}?class=w200&v={% appVersion %} 200w
"
sizes="(max-width: 450px) 100px, 200px"
class="icon" src="{{ globals.cdn_url }}{{ globals.avatar_header }}?class=w100&v={% appVersion %}"
alt="{{ globals.site_name }}"
width="100"
height="145"
/>
<span>Cory</span> <span>Dransfeldt</span> <span>Cory</span> <span>Dransfeldt</span>
{%- endcapture -%} {%- endcapture -%}
<section class="main-title"> <section class="main-title">

View file

@ -37,6 +37,7 @@ permalink: "/music/concerts/{% if pagination.pageNumber > 0 %}{{ pagination.page
{% assign notes = concert.notes | prepend: "### Notes\n" | markdown %} {% assign notes = concert.notes | prepend: "### Notes\n" | markdown %}
{% render "blocks/dialog.liquid", {% render "blocks/dialog.liquid",
icon:"info-circle", icon:"info-circle",
label:"View info about this concert"
content:notes, content:notes,
id:concert.id id:concert.id
%} %}