RESOLVED FIXED 214898
Web Inspector: REGRESSION(r255396): Audit: button to exit edit mode in main content area is missing border
https://bugs.webkit.org/show_bug.cgi?id=214898
Summary Web Inspector: REGRESSION(r255396): Audit: button to exit edit mode in main c...
Devin Rousso
Reported 2020-07-28 14:42:11 PDT
# STEPS TO REPRODUCE 1. inspect any page 2. go to the Audit Tab 3. enter Edit mode from the navigation sidebar => the Done button in the main content area is missing a border
Attachments
Patch (1.99 KB, patch)
2020-07-28 16:00 PDT, Blaze Burg
hi: review+
Radar WebKit Bug Importer
Comment 1 2020-07-28 14:42:26 PDT
Devin Rousso
Comment 2 2020-07-28 15:10:37 PDT
I'm pretty sure this was caused by the following change from r255396 <https://webkit.org/b/205434>: ``` -.message-text-view .navigation-item-help .navigation-bar > .item { +.navigation-item-help > .navigation-bar > .item { ```
Blaze Burg
Comment 3 2020-07-28 16:00:53 PDT
Devin Rousso
Comment 4 2020-07-28 16:12:38 PDT
Comment on attachment 405425 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=405425&action=review r=me > Source/WebInspectorUI/UserInterface/Views/Main.css:239 > .navigation-item-help > .navigation-bar > .item { we could also adjust `WI.createNavigationItemHelp` to always expect `console.assert(navigationItem instanceof WI.ButtonNavigationItem);` so that we could add `.button` to the CSS since `.text-only` only exists for `WI.ButtonNavigationItem` > Source/WebInspectorUI/UserInterface/Views/Main.css:246 > +.navigation-item-help > .navigation-bar > .item:not(.text-only) { ditto (:239) > Source/WebInspectorUI/UserInterface/Views/Main.css:250 > +.navigation-item-help > .navigation-bar > .item.text-only { ditto (:239) > Source/WebInspectorUI/UserInterface/Views/Main.css:251 > + border: solid 1px var(--border-color); It's a bit odd that we have the same CSS property repeated twice exactly as is for two rules that should both match the same thing. Perhaps you could add a comment above it explaining that this is necessary due to the specificity of `.navigation-bar .item.button.text-only`?
Blaze Burg
Comment 5 2020-07-28 21:31:35 PDT
Note You need to log in before you can comment on or make changes to this bug.