cloudfour / cloudfour/cloudfour.com-patterns

Consider matching DOM order for Sky Nav elements when JS is disabled for better accessibility

未关闭
#1,994 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
⁉️ question 🎨 design 🦮 a11y
主要语言
SCSS
星标
26
派生
3
平均合并
19 小时 32 分钟
30 天内合并 PR
81

描述

When JS is disabled:
- the "Menu" button is hidden
- the Sky Nav is open

## Current implementation

The DOM order of the nav does not match the visual order in the current solution:
Current tab order count | Current tab order in action
--- | ---
Screen Shot 2022-08-02 at 9 39 01 AM | ![source-order-current](https://user-images.githubusercontent.com/459757/182430440-70c954b7-2f48-44eb-ba57-ec6de151e657.gif)

## Proposed solution

We should consider allowing the visual order to match the DOM order when JS is disabled. We might even consider centering the Cloud Four logo since the button is not shown:
Proposes tab order count | Proposed tab order in action
--- | ---
Screen Shot 2022-08-02 at 9 46 09 AM | ![source-order-proposal](https://user-images.githubusercontent.com/459757/182430606-c5ad6067-3ca0-4dbb-9830-c53b0ec94eb5.gif)

## Other considerations

- The gradient no longer matches the original design in the proposed solution

## Related

- https://web.dev/visual-order-follows-dom/

贡献指南

打开贡献指南

调研方向

首先定位 Sky Nav 的实现,并在禁用 JavaScript 的情况下检查其 DOM 和视觉顺序。将键盘 Tab 顺序与提议的屏幕截图进行比较,然后确认导航顺序在考虑 logo 位置和渐变设计问题的同时保持一致。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, scss
领域
accessibility, design, frontend
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。