"append a new style sheet" link in Style-editor should't be middle-clickable and shouldn't display URL tooltip

NEW
Unassigned

Status

()

Firefox
Developer Tools: Style Editor
P3
trivial
2 years ago
a year ago

People

(Reporter: arni2033, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(firefox43 affected)

Details

(URL)

(Reporter)

Description

2 years ago
STR:   (Win7, Nightly 42.0a1 (2015-08-11))
1. Open   data:text/html,<body>
2. Open Style editor (Shift+F7)
3. Move mouse over "append a new style sheet" link
4. Middle-click "append a new style sheet" link

Result:       In Step 3 you can see URL tooltip in the left bottom corner of content area
              After Step 4 chrome://browser/content/devtools/styleeditor.xul# opens in new tab.
Expectations: Either create new style, or (I prefer the second option) no action at all.

Note:   making links Middle-clickable would be useful for links in Debugger and Inspector! There's already an item in context menu for that, but middle click is faster.
In Style editor that link isn't supposed to open in new tab.
(Reporter)

Updated

2 years ago
Severity: normal → trivial
(Reporter)

Comment 1

2 years ago
I was going to file another bug as blocking, but I think it's a good place for my suggestion:
(tag this as obsolete once you take a decision on this)

Title: [Request] Remodel "append a new style sheet" link in Style editor
----
I hope you'll argee that current "button" for creating style sheets isn't great implementation:
1) With some sidebar width you get only "?" moved to a new line.
2) A button splitted to 2+ lines and starting in the middle of line just doesn't look good.
----
My suggestions (all I could think of):
  a) Apply "display: block;" to the link. That'll require changing Firefox "localization strings".
>  <p>&noStyleSheet-tip-start.label;
>    <a href="#"
>      class="style-editor-newButton">&noStyleSheet-tip-action.label;</a>
>    &noStyleSheet-tip-end.label;</p>
I guess, the end label can't just be placed right after the action label for some languages. So the better way in this option is to change some of that labels (task for localizers)
  b) Leave only link and remove "Perhaps you'd like to" and "?". Obviously if I wasn't going to append a new style, I wouldn't press that button. This will again require localization.
  c) Leave all text labels but as plain text, and add a small toolbarbutton with fixed size under all that text (or above it). Reference: DevTools->Inspector->Animations
(Reporter)

Updated

2 years ago
See Also: → bug 1204278
(Reporter)

Updated

2 years ago
Has STR: --- → yes
Inspector bug triage (filter on CLIMBING SHOES).
Priority: -- → P3
See Also: → bug 1287389
You need to log in before you can comment on or make changes to this bug.