Webflow fix

Before and after

Broken — before
<!-- Broken Webflow exported Link Block containing only an SVG embed -->
<a href="https://linkedin.com/company/example" class="social-icon-link w-inline-block">
  <div class="w-embed">
    <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
      <path d="M4.98 3.5C4.98 4.88 3.86 6 2.5 6S0 4.88 0 3.5 1.12 1 2.5 1s2.48 1.12 2.48 2.5zM.5 8h4V24h-4V8z" />
    </svg>
  </div>
</a>
Fixed — after
<!-- Fixed Webflow Link Block (Custom Attribute: aria-label + aria-hidden on decorative SVG) -->
<a
  href="https://linkedin.com/company/example"
  aria-label="Follow Example Studio on LinkedIn"
  rel="noopener noreferrer"
  class="social-icon-link w-inline-block"
>
  <div class="w-embed" aria-hidden="true">
    <svg aria-hidden="true" focusable="false" width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
      <path d="M4.98 3.5C4.98 4.88 3.86 6 2.5 6S0 4.88 0 3.5 1.12 1 2.5 1s2.48 1.12 2.48 2.5zM.5 8h4V24h-4V8z" />
    </svg>
  </div>
</a>
Live preview

Fixed vs. broken example

Passes link-name
Accessibility tree: role="link", accessible name="View A11yDrift on GitHub" (SVG marked aria-hidden="true")

Open the VoiceOver Web Rotor (Control+Option+U) or NVDA Elements List (NVDA+F7) to confirm every icon anchor shows a clear destination label.

Automated test

Playwright + axe-core check

tests/a11y-link-name.spec.ts
import { test, expect } from "@playwright/test";
import AxeBuilder from "@axe-core/playwright";

test("Webflow Link Blocks and brand navbar links pass link-name", async ({ page }) => {
  await page.goto("/");
  const results = await new AxeBuilder({ page })
    .withRules(["link-name"])
    .analyze();
  expect(results.violations).toEqual([]);
});

Template deduplication tip

An unlabeled navbar logo Link Block or footer social Link Block inside a Webflow Component replicates across every page on your site. Updating the Component once resolves every URL in A11yDrift.

Screen readers

What NVDA and VoiceOver announce

Screen-reader users routinely pull up a rotor or links list to jump straight to destinations. Bare icon anchors, empty product-image wrappers, or unlabeled social links appear as meaningless raw URLs or blank entries.

NVDA (Windows)

Broken

"link, #social-demo" (raw href fragment read verbatim)


Fixed

"View A11yDrift on GitHub, link"

VoiceOver (macOS / iOS)

Broken

"link" (or raw URL path)


Fixed

"View A11yDrift on GitHub, link"

Common questions

How do I add aria-label to a Webflow Link Block in the Designer?
Select the Link Block, open the Settings panel (gear icon), scroll to Custom Attributes, click +, and add Name: aria-label and Value: a concise destination description such as 'Company Home'.
Can I bind a Webflow CMS field to a Link Block's aria-label?
Yes—or even cleaner, drop a Text Block with a visually-hidden (.sr-only) class inside the CMS Link Block and bind it to the CMS item's Name field so every card link dynamically receives its exact title.
Why does Webflow's default Navbar Brand link sometimes fail link-name?
If you place a logo Image inside the Brand link with empty alt text (or an SVG Embed), the anchor has no text. Give the Brand link aria-label='Your Brand — Home' or set descriptive alt text on the logo image.