Open Bug 1193340 Opened 9 years ago Updated 2 years ago

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

Categories

(DevTools :: Style Editor, defect, P3)

defect

Tracking

(firefox43 affected)

Tracking Status
firefox43 --- affected

People

(Reporter: arni2033, Unassigned)

References

()

Details

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.
Severity: normal → trivial
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
See Also: → 1204278
Has STR: --- → yes
Inspector bug triage (filter on CLIMBING SHOES).
Priority: -- → P3
See Also: → 1287389
Product: Firefox → DevTools
Severity: trivial → S4
You need to log in before you can comment on or make changes to this bug.