2
fix(bcd): wrap cells in button + refactor by caugner · Pull Request #5648 · mdn/...
source link: https://github.com/mdn/yari/pull/5648
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Summary
Partly fixes #5494.
Problem
Previously, there were two focus points per BCD cell.
Solution
Wrapping the BCD cell in a button and removing the tabindex
from the cell itself, we reduce the number of focus points to one.
Screenshots
Before (Desktop)
After (Desktop)
Before (Mobile)
After (Mobile)
How did you test this change?
- Opened http://localhost:3000/en-US/docs/Web/API/TreeWalker?#browser_compatibility locally and checked both desktop and mobile versions.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK