fix: resolve Svelte build warnings

- Add keyboard handler to fab-modal and dialog overlays (a11y)
- Remove unused .btn-cancel CSS selector
- Wrap meal name input inside its label, use span for ingredients heading
- Change image-wrap-desktop from div to figure for valid figcaption
This commit is contained in:
2026-04-06 00:06:58 +02:00
parent 43c8b3da2e
commit c2510855c5
4 changed files with 17 additions and 18 deletions
@@ -172,16 +172,18 @@
<div class="form-card">
<h2 class="form-title">{editingId ? t('edit', lang) : t('new_meal', lang)}</h2>
<label class="field-label">{t('meal_name', lang)}</label>
<input
type="text"
class="text-input"
bind:value={mealName}
placeholder={t('meal_name', lang)}
/>
<label class="field-label">
{t('meal_name', lang)}
<input
type="text"
class="text-input"
bind:value={mealName}
placeholder={t('meal_name', lang)}
/>
</label>
<!-- Ingredients list -->
<label class="field-label">{t('ingredients', lang)} ({ingredients.length})</label>
<span class="field-label">{t('ingredients', lang)} ({ingredients.length})</span>
{#if ingredients.length > 0}
<div class="ingredients-list">
{#each ingredients as ing, i}