Files app: Fix breadcrumbs to have tooltip
Add tooltip and aria-label to breadcrumbs. This fixes 3 issues: 1. Make the collapsed breadcrumb accessible to Chromevox issue:1029245 2. Show tooltip for breadcrumbs useful for: 2.1 When hovering a collapsed breadcrumb, which displays "..." as content. 2.2 When the name is too long and part of the content shows as ellipses. Change variable to const where enforced by presubmit. Change param from HTMLElement to EventTarget, because it only uses the addEventListener() and closure failed in the new call to addTarget(). Fix test filesTooltipFocus() which expected breadcrumb to not have tooltip, but setting the focus to file list instead. Test: browser_tests --gtest_filter="*breadcrumbsTooltip" Bug: 1029245, 951305 Change-Id: I74ba38519ac70b1e210f55e1979a862841b13b1e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1941533 Commit-Queue: Alex Danilo <adanilo@chromium.org> Reviewed-by:Alex Danilo <adanilo@chromium.org> Auto-Submit: Luciano Pacheco <lucmult@chromium.org> Cr-Commit-Position: refs/heads/master@{#720089}
Showing
Please register or sign in to comment