Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
fix(a11y): make the remaining href=# controls real buttons with focus styles
nirholas2be8ce8496c9
diff --git a/pages/cosmos.html b/pages/cosmos.htmlindex 8b27b6156..5ac6df886 100644--- a/pages/cosmos.html+++ b/pages/cosmos.html@@ -571,6 +571,24 @@.cz-note a {color: var(--cz-accent);}+ /* Retry re-runs the generation on this page, so it is a button that reads+ as a link and keeps native keyboard and focus behaviour. */+ .cz-note button {+ appearance: none;+ background: none;+ border: 0;+ padding: 0;+ font: inherit;+ color: var(--cz-accent);+ cursor: pointer;+ text-decoration: underline;+ text-underline-offset: 2px;+ }+ .cz-note button:focus-visible {+ outline: 2px solid var(--cz-accent);+ outline-offset: 2px;+ border-radius: 2px;+ }details.cz-adv {border-top: 1px solid var(--cz-border);diff --git a/src/compare.js b/src/compare.jsindex b557b9ad1..bd05af345 100644--- a/src/compare.js+++ b/src/compare.js@@ -412,30 +412,34 @@ function wireSearch() {const close = () => {pop.hidden = true;input.setAttribute('aria-expanded', 'false');+ input.removeAttribute('aria-activedescendant');active = -1;};function renderPop() {if (!items.length) {pop.innerHTML = `<div class="none">No coins match “${esc(lastQuery)}”.</div>`;+ input.removeAttribute('aria-activedescendant');} else {+ // Picking an option adds a comparison column, it does not navigate, so an+ // option is a listbox option and never a link. Focus stays on the input+ // (the combobox pattern); aria-activedescendant is what moves.pop.innerHTML = items.map((c, i) => `- <a href="#" role="option" data-id="${esc(c.id)}" data-active="${i === active ? 1 : 0}" aria-selected="${i === active}">+ <div id="cmp-opt-${i}" role="option" data-id="${esc(c.id)}" data-active="${i === active ? 1 : 0}" aria-selected="${i === active}">${c.thumb ? `<img loading="lazy" decoding="async" src="${esc(c.thumb)}" alt="" width="20" height="20" data-no-dark-filter />` : ''}<span>${esc(c.name)}</span><span class="sym">${esc(c.symbol)}</span>${c.rank != null ? `<span class="rk">#${c.rank}</span>` : ''}- </a>`,+ </div>`,).join('');- pop.querySelectorAll('a[data-id]').forEach((a) =>- a.addEventListener('click', (e) => {- e.preventDefault();- pick(a.dataset.id);- }),+ pop.querySelectorAll('[data-id]').forEach((opt) =>+ opt.addEventListener('click', () => pick(opt.dataset.id)),);+ if (active >= 0) input.setAttribute('aria-activedescendant', `cmp-opt-${active}`);+ else input.removeAttribute('aria-activedescendant');}pop.hidden = false;input.setAttribute('aria-expanded', 'true');diff --git a/src/cosmos.js b/src/cosmos.jsindex bc8d8f714..40776990d 100644--- a/src/cosmos.js+++ b/src/cosmos.js@@ -313,14 +313,11 @@ function failGeneration(message, { unconfigured = false } = {}) {els.secondary.style.display = lastVideoUrl ? 'flex' : 'none';showNote(unconfigured ? 'info' : 'err',- `${message}${unconfigured ? '' : ' <a href="#" id="cz-retry">Retry</a>'}`,+ `${message}${unconfigured ? '' : ' <button type="button" id="cz-retry">Retry</button>'}`,);const retry = $('cz-retry');if (retry) {- retry.addEventListener('click', (e) => {- e.preventDefault();- generate();- });+ retry.addEventListener('click', () => generate());}}diff --git a/src/dashboard-next/pages/home.js b/src/dashboard-next/pages/home.jsindex f8e5e48a5..f376c6f52 100644--- a/src/dashboard-next/pages/home.js+++ b/src/dashboard-next/pages/home.js@@ -996,7 +996,7 @@ function renderOnboarding(host, { avatars, agents, widgets }) {<div class="dnx-ob-active-detail">${esc(activeStep.detail)}</div><div class="dnx-ob-active-actions"><a class="dn-btn dnx-ob-active-cta" href="${activeStep.href}">${esc(activeStep.cta)} →</a>- ${activeStep.optional ? `<span class="dnx-ob-active-skip">or <a href="#" data-ob-skip>skip for now</a></span>` : ''}+ ${activeStep.optional ? `<span class="dnx-ob-active-skip">or <button type="button" data-ob-skip>skip for now</button></span>` : ''}</div></div></div>@@ -2187,8 +2187,9 @@ function injectStyles() {box-shadow: 0 4px 18px -6px rgba(255,255,255,0.4);}.dnx-ob-active-skip { font-size: 12px; color: var(--nxt-ink-fade); }- .dnx-ob-active-skip a { color: var(--nxt-ink-fade); text-decoration: underline; }- .dnx-ob-active-skip a:hover { color: var(--nxt-ink); }+ .dnx-ob-active-skip button { appearance: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--nxt-ink-fade); text-decoration: underline; }+ .dnx-ob-active-skip button:hover { color: var(--nxt-ink); }+ .dnx-ob-active-skip button:focus-visible { outline: 2px solid var(--nxt-accent, currentColor); outline-offset: 2px; border-radius: 2px; }/* Future (upcoming) steps — minimal */.dnx-ob-future-list {diff --git a/src/erc8004/register-ui.js b/src/erc8004/register-ui.jsindex 097993fc4..e0f926597 100644--- a/src/erc8004/register-ui.js+++ b/src/erc8004/register-ui.js@@ -2981,9 +2981,8 @@ export class RegisterUI {return oc?.family === 'solana' && (oc?.cluster === 'devnet') === wantDevnet;});if (!agents.length) {- list.innerHTML = `<div class="erc8004-muted">No agents minted on ${esc(network)} yet. <a class="erc8004-link" data-role="goto-create" href="#">Create one →</a> or <a class="erc8004-link" href="/discover" target="_blank" rel="noopener">browse the on-chain directory ↗</a>.</div>`;- list.querySelector('[data-role="goto-create"]').addEventListener('click', (e) => {- e.preventDefault();+ list.innerHTML = `<div class="erc8004-muted">No agents minted on ${esc(network)} yet. <button type="button" class="erc8004-link" data-role="goto-create">Create one →</button> or <a class="erc8004-link" href="/discover" target="_blank" rel="noopener">browse the on-chain directory ↗</a>.</div>`;+ list.querySelector('[data-role="goto-create"]').addEventListener('click', () => {this._setTab('create');});return;