Bug 227645

Summary: Web Inspector: ContextualDocumentationButton should appear when editing any value even without hover
Product: WebKit Reporter: Harshil Ratnu <harshil.sratnu>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on: 226883    
Bug Blocks:    

Description Harshil Ratnu 2021-07-02 14:50:52 PDT
Currently the Contextual Documentation Popover only appears in the styles panel when hovering on top of a value. However to increase it's discoverability it should also appear on css properties whose values are being edited. Since most developers use Tab key to navigate between styles it would be a helpful addition in showing that the documentation for certain properties exists and can be shown by clicking on the button.

Current Behavior:
1) User inspects a webpage
2) User hovers on top of a css property and the contextualDocumentationButton appears besides that property
3) User clicks in the value field and the button still appear
4) Now, the user tabs into the next property, specifically the next property name -  info button should not appear does not want to show documentation for a property that is being edited.
5) User tabs again and goes into the value field of a property - recall the user is still hovering on the property above it and hence the info button is only appearing on the property above it.

Suggested change in current behavior:
Step 5 New) If the user is editing a value field for a property on which they are not hovering the info button should still appear besides that property (granted the property is documented)
In this scenario there would be two info buttons in the window - 1st besides the property the user is hovering upon and 2nd besides whatever property value the user is editing.
Comment 1 Radar WebKit Bug Importer 2021-07-09 14:51:16 PDT
<rdar://problem/80395248>