[Webkit-unassigned] [Bug 182302] New: Web Inspector: ToggleButtonNavigationItem should support buttons styles

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 30 11:59:20 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=182302

            Bug ID: 182302
           Summary: Web Inspector: ToggleButtonNavigationItem should
                    support buttons styles
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mattbaker at apple.com
                CC: inspector-bugzilla-changes at group.apple.com

Summary:
ToggleButtonNavigationItem should support buttons styles.

Example:
let item = new WI.ToggleButtonNavigationItem(...);
item.buttonStyle = WI.ButtonNavigationItem.Style.ImageAndText; // Button appears blank
item.buttonStyle = WI.ButtonNavigationItem.Style.Text;         // Button appears blank

Notes:
Toggle buttons have traditionally been described by two images, a default and an alternate, which are toggled. A text-only option may not make sense, but ImageAndText should work provided the client also toggles the label:

let item = new WI.ToggleButtonNavigationItem(...);
item.buttonStyle = WI.ButtonNavigationItem.Style.ImageAndText;
item.toggled = state;
item.label = item.toggled ? "Alternate Label" : "Default Label";

This would be nice to have for Timelines/Canvas recording button.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180130/969a9ca6/attachment.html>


More information about the webkit-unassigned mailing list