NeovaNền tảng SEO chuyên sâu

Thanh tiến trình không có accessible name

Trong Neova Chạy ngay từ lần crawl: không cần thiết lập gì.

Quy tắc được rà soát lần cuối ngày 17 tháng 10 năm 2026 · Hướng dẫn cập nhật ngày 7 tháng 7 năm 2026

WCAG 1.1.1 yêu cầu văn bản thay thế. Một thanh tiến trình không có tên đưa cho người dùng trình đọc màn hình một giá trị không có ngữ cảnh. Văn bản bên trong phần tử không được tính là tên.

Bạn có thể làm gì

Thêm aria-label, aria-labelledby, title hoặc một phần tử label cho thanh tiến trình.

Vì sao Neova đánh dấu

  • Thanh tiến trình không có tên được đọc như một con số phần trăm trơn, nên người dùng không biết cái gì đang tải.
  • WCAG 1.1.1 (cấp độ A) yêu cầu văn bản thay thế cho nội dung không phải văn bản.
  • Văn bản bên trong thanh tiến trình không tự thành tên của nó, nên cần label riêng.

Nguồn

Hướng dẫn đầy đủ

Phần này tạm thời còn bằng tiếng Anh.

What This Check Flags

This rule fires when an element with role="progressbar" has no accessible name. A screen reader reaches it and announces “progress bar, 40 percent” — forty percent of what? Upload? Checkout? Quiz score? Without a name the number is meaningless. Progress indicators are usually the feedback for a slow operation, so an unnamed one leaves assistive-tech users guessing whether the thing they just started is even working. It won’t move rankings, but it’s a clean, cheap Lighthouse win and a genuine usability fix.

The reason this one stings is timing. A progressbar shows up precisely when the user is anxious — they’ve submitted a form, kicked off a big file upload, or triggered a report that takes a while. A sighted user glances at the caption and the moving bar and relaxes: it’s working, give it a moment. Strip the name and a screen-reader user gets a bare percentage floating in space with no idea what it’s measuring. Did the upload start, or is this some other counter? The single word of context a name provides is the difference between reassurance and a page reload that cancels the very operation they were waiting on.

A Real Failing Snippet, and the Fix

A typical upload widget sets the value attributes but never names the bar:

<!-- FAILS: progressbar with value but no name -->
<div role="progressbar"
     aria-valuenow="40"
     aria-valuemin="0"
     aria-valuemax="100"></div>

The value states are fine; what’s missing is a label. If there’s visible caption text, wire it up with aria-labelledby; if not, add an aria-label that says what’s progressing:

<!-- PASSES: the bar now names what it's tracking -->
<span id="upload-lbl">Uploading photos</span>
<div role="progressbar"
     aria-labelledby="upload-lbl"
     aria-valuenow="40"
     aria-valuemin="0"
     aria-valuemax="100"></div>

<!-- or, with no visible caption -->
<div role="progressbar"
     aria-label="Uploading photos"
     aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>

Best of all, the native <progress> element paired with a <label> gives you the role, the value semantics, and the name without a single ARIA attribute. Reach for it first.

Name vs. Value: Two Different Jobs

People conflate the label with the percentage. They’re separate concerns — the name says what it is, the value states say how far along it is. A progressbar needs both to announce cleanly.

Attribute Answers Example
aria-label / aria-labelledby What is this bar for? “Uploading photos”
aria-valuenow Where is it right now? 40
aria-valuemin / aria-valuemax What’s the range? 0 – 100
aria-valuetext A human-readable value (optional) “Step 2 of 5”

For an indeterminate spinner where you can’t report a percentage, omit aria-valuenow entirely — but the accessible name is still required.

How to Detect It

  1. axe DevTools: the “ARIA progressbar must have an accessible name” violation lists each unnamed bar and points to the node in the DOM.
  2. Lighthouse: run the Accessibility audit; the check sits in the ARIA group with the failing progressbars enumerated beneath it.
  3. ARIA DevTools / accessibility tree: select the progressbar in the Accessibility panel and read the computed Name. Empty means it still fails, regardless of what the DOM looks like.

How to Fix It

  1. Locate the flagged element and confirm it really needs to be a progressbar (a static bar that never updates might not).
  2. If a visible caption exists, add aria-labelledby referencing its id.
  3. Otherwise add a short, specific aria-label describing the operation.
  4. Keep the value attributes accurate — a name without a moving aria-valuenow tells only half the story.
  5. Consider swapping to native <progress> with a <label>.
  6. Re-scan and confirm the computed name is populated.

One design decision that quietly prevents this bug: if the bar has a visible caption anyway — “Uploading photos… 40%” — wire that existing text in with aria-labelledby instead of duplicating it in an aria-label. You get one source of truth, so when the copy changes the accessible name changes with it, and there’s no risk of the visible caption and the announced name drifting apart over time. Duplicated label strings are how a “Saving draft” caption ends up reading as “Uploading photos” six months later.

If your value attributes are also out of range (a valuenow above valuemax, for instance), that’s a separate failure — see ARIA attributes must conform to valid values.

FAQ

My Progressbar Is Decorative — Do I Still Need a Name?

If it conveys no real status, it probably shouldn’t have role="progressbar" at all. Remove the role, or mark the wrapper aria-hidden="true" if it’s purely visual. Once it declares the role, a name is mandatory.

Can the Percentage Text Inside the Bar Serve as the Name?

No — “40%” is a value, not a name. Even if that text is read, it doesn’t tell anyone what the bar measures. Add an explicit label.

What About an Indeterminate Loading Bar With No Known Duration?

Drop aria-valuenow so it’s announced as indeterminate, but keep the accessible name (e.g. “Loading results”). The name requirement doesn’t go away just because the value is unknown.

How Is This Different From the Input-Field Name Check?

Same underlying naming mechanics, different role. The input-field rule covers textbox, combobox, and friends — see ARIA input fields must have an accessible name. This one is scoped to progressbar.

Should I Also Announce Progress Changes as They Happen?

Often, yes — and it’s a separate concern from naming. A named progressbar tells a screen reader what the control is, but by default the reader won’t re-announce every tick as the value climbs. If it matters that the user hears updates (a long export, say), pair the bar with a polite live region, or let the platform’s native <progress> handling take care of it. Just don’t make it chatty: announcing every single percent from 1 to 100 is its own accessibility problem. Name it first, then decide whether live updates earn their keep.

Tìm lỗi này trên trang của bạn

Neova chạy mục kiểm tra này và mọi mục khác trong mỗi lần crawl, rồi viết cách sửa thành ticket cho nhóm của bạn.

  • Ứng dụng máy tính cho Mac, Windows và Linux
  • Tất cả 696 mục kiểm tra, mỗi mục kèm nguồn
  • Search Console và Analytics 4, kết nối chỉ đọc
  • Ticket sang Jira, Linear và Asana

Tải Neova Gói Desktop Free, hoặc dùng thử Solo miễn phí 14 ngày, không cần thẻ.

Tất cả mục kiểm tra Khả năng truy cập · Hướng dẫn · Thư viện mục kiểm tra

Do Neova Labs biên soạn · Quay lại Thư viện mục kiểm tra