Website announcement dismiss control cannot be reached or used with a keyboard
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 88/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript
- Lĩnh vực
- accessibility, frontend
Hướng nghiên cứu
Bắt đầu với src/resources/projects/website/templates/nav-before-body.ejs và src/resources/projects/website/navigation/quarto-nav.js, được issue xác định là markup của thông báo và trình xử lý nhấp chuột. Render ví dụ website được cung cấp và kiểm tra điều khiển thông báo được tạo ra cùng cách điều khiển này hoạt động với bàn phím. Hoàn thành khi có thể dùng Tab để chuyển đến điều khiển, điều khiển có tên truy cập được và đóng thông báo bằng Enter hoặc Space.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I have:
- searched the issue tracker for similar issues
- installed the latest version of Quarto CLI
- formatted my issue following the Bug Reports guide
Bug description
Keyboard and screen reader users cannot dismiss a website announcement.
Quarto writes the dismiss control as an <i> element, with no role, no accessible name, and no tab stop:
quarto-nav.js only listens for a mouse click on it:
This fails WCAG 2.1.1 Keyboard and WCAG 4.1.2 Name, Role, Value, both Level A.
Related:
Steps to reproduce
_quarto.yml:
project:
type: website
website:
title: "Announcement"
navbar:
left:
- href: index.qmd
text: Home
announcement:
content: "This is an announcement."
type: info
dismissable: true
position: above-navbar
format: html
index.qmd:
---
title: "Home"
---
Some text.
- Run
quarto render. - Open
_site/index.html. - Press Tab repeatedly.
Actual behavior
Focus never reaches the dismiss control, and its tabIndex is -1.
Only a mouse click closes the bar.
A screen reader does not expose the control at all.
Expected behavior
The control is a <button type="button"> with an accessible name, such as aria-label="Dismiss announcement".
Tab reaches it, and Enter or Space closes the bar.
If the button keeps the quarto-announcement-action class, the existing click handler in quarto-nav.js works unchanged, because a button fires click on Enter and Space.
Your environment
- OS: macOS 27.0.1.
- Browser: Chromium (Brave), driven by Playwright.
Quarto check output
Quarto 99.9.9
[✓] Checking environment information...
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.10.0: OK
Dart Sass version 1.101.0: OK
Deno version 2.9.8: OK
Typst version 0.15.1: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 99.9.9
commit: 6f81421488bde28d87cee51c9988e666bc09f7be
The build comes from commit 6f81421, which is the v1.11.8 tag.
- Ngôn ngữ chính
- JavaScript
- Star
- 6.1k
- Fork
- 476
- Merge trung bình
- 16 giờ 42 phút
- Pull request đã merge (30 ngày)
- 115
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của quarto-dev/quarto-cli
-
quarto.json.decode does not raise on invalid JSON, so pcall cannot catch itCó thể đã có người làm @sogav21 đã nhận 1 ngày trước. Đang mởbug lua
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
quarto-dev/quarto-cli#15226 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
arrow-dark gives region markers a light band that fails contrastCó thể đã có người làm @vav7 đã nhận 1 ngày trước. Đang mởaccessibility bug themes
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
quarto-dev/quarto-cli#15222 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug code-annotation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
quarto-dev/quarto-cli#15215 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
accessibility bug website-navigation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
quarto-dev/quarto-cli#15190 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Navbar dropdown toggles have `role="link"`Có thể làm lại được @Mittalnew đã nhận 7 ngày trước và không có pull request nào đang mở. Đang mởaccessibility bug website-navigation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
quarto-dev/quarto-cli#15188 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của quarto-dev/quarto-cli
Issue tương tự
-
Site Suggestion: bullseyeĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Add toro4n to the data modeling toolsCó thể đã có người làm @henriklantzhedstrom-prog đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
neo4j/docs-getting-started#546 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 25 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
libnativeapi/nativeapi#21 ·
-
area: core complexity: easy impact: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
ueberdosis/tiptap#8668 ·
Maintainer thường phản hồi trong vòng 1 ngày