| Summary: | Web Inspector: AXI: annotate tab panels | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Nikita Vasilyev <nvasilyev> | ||||||
| Component: | Web Inspector | Assignee: | Nikita Vasilyev <nvasilyev> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | commit-queue, hi, inspector-bugzilla-changes, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Attachments: |
|
||||||||
|
Description
Nikita Vasilyev
2020-03-03 15:44:33 PST
Created attachment 392344 [details]
Patch
Comment on attachment 392344 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=392344&action=review r=me > Source/WebInspectorUI/ChangeLog:3 > + Web Inspector: AXI: annotate tab panels Please add an explanation as to why `role="main"` is not sufficient, and why `role="tabpanel"` is better. > Source/WebInspectorUI/UserInterface/Base/Main.js:1822 > + WI._contentElement.ariaLabel = WI.tabBar.selectedTabBarItem?.title || ""; Rather than check `WI.tabBar.selectedTabBarItem` more than once, why not pull it out into a variable and share it with the check below? ``` let selectedTabBarItem = WI.tabBar.selectedTabBarItem; if (selectedTabBarItem) { WI._contentElement.ariaLabel = selectedTabBarItem.title || ""; if (selectedTabBarItem.representedObject.constructor.shouldSaveTab()) WI._selectedTabIndexSetting.value = WI.tabBar.tabBarItems.indexOf(selectedTabBarItem); ``` Created attachment 392647 [details]
Patch
Comment on attachment 392647 [details] Patch Clearing flags on attachment: 392647 Committed r257965: <https://trac.webkit.org/changeset/257965> All reviewed patches have been landed. Closing bug. |