Closed
Bug 987365
Opened 11 years ago
Closed 9 years ago
Add pseudo-class lock options to rule view
Categories
(DevTools :: Inspector, defect)
DevTools
Inspector
Tracking
(firefox41 fixed, relnote-firefox 41+)
VERIFIED
FIXED
Firefox 41
People
(Reporter: harth, Assigned: gl)
References
Details
(Keywords: dev-doc-complete)
Attachments
(4 files, 16 obsolete files)
I'm getting many reports that people don't know you can lock :hover, etc. on elements in the inspector, and also can't find it after looking for a bit.
Right now we only expose this functionality if you right click on a node in the HTML view or breadcrumbs. I think most people look for it near the rule view, as they want to test :hover for the effect that it has on style.
One option is bug 938202, showing buttons for each along the top of the rule view (or computed view, as webkit does). Another is a settings-type button with the pseudo-classes in a drop-down menu.
Comment 1•10 years ago
|
||
WIP, just adds a background color to the nodes that have a pseudo class applied in the markup view
Comment 2•10 years ago
|
||
(In reply to Brian Grinstead [:bgrins] from comment #1)
> Created attachment 8524834 [details] [diff] [review]
> obvious-ui-for-pseudo-locks-WIP.patch
>
> WIP, just adds a background color to the nodes that have a pseudo class
> applied in the markup view
As I understand this bug it is rather about updating the UI of the lock options. For the visualization within the markup view I created bug 1120406.
Sebastian
Summary: More obvious UI for pseudo-class lock → More obvious UI for pseudo-class lock options
Comment 3•10 years ago
|
||
(In reply to Sebastian Zartner [:sebo] from comment #2)
> (In reply to Brian Grinstead [:bgrins] from comment #1)
> > Created attachment 8524834 [details] [diff] [review]
> > obvious-ui-for-pseudo-locks-WIP.patch
> >
> > WIP, just adds a background color to the nodes that have a pseudo class
> > applied in the markup view
>
> As I understand this bug it is rather about updating the UI of the lock
> options. For the visualization within the markup view I created bug 1120406.
>
> Sebastian
Right, I'll attach the patch to bug 1120406 instead
Comment 4•10 years ago
|
||
Comment on attachment 8524834 [details] [diff] [review]
obvious-ui-for-pseudo-locks-WIP.patch
Attached this to bug 1120406 instead
Attachment #8524834 -
Attachment is obsolete: true
Assignee | ||
Comment 5•10 years ago
|
||
This patch depends on the patch in Bug 1120616
Assignee | ||
Comment 6•10 years ago
|
||
Attachment #8547765 -
Attachment is obsolete: true
Assignee | ||
Comment 7•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → gabriel.luong
Assignee | ||
Comment 8•10 years ago
|
||
Attachment #8556682 -
Attachment is obsolete: true
Assignee | ||
Updated•10 years ago
|
Summary: More obvious UI for pseudo-class lock options → Add panel for pseudo-class lock options to rule view r=bgrins
Assignee | ||
Comment 9•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Summary: Add panel for pseudo-class lock options to rule view r=bgrins → Add panel for pseudo-class lock options to rule view
Assignee | ||
Updated•10 years ago
|
Attachment #8593478 -
Attachment description: 987365.patch → 987365.patch [WIP]
Updated•10 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•10 years ago
|
Attachment #8593478 -
Flags: feedback?(bgrinstead)
Comment 11•10 years ago
|
||
Comment on attachment 8593478 [details] [diff] [review]
987365.patch [WIP]
Review of attachment 8593478 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/devtools/styleinspector/rule-view.js
@@ +2145,5 @@
> + let isOpen = panel.getAttribute("open");
> +
> + if (isOpen) {
> + panel.removeAttribute("open");
> + panel.style.display = "none";
You can just do panel.hidden = isOpen;
Assignee | ||
Comment 12•10 years ago
|
||
(In reply to Tim Nguyen [:ntim] from comment #11)
> Comment on attachment 8593478 [details] [diff] [review]
> 987365.patch [WIP]
>
> Review of attachment 8593478 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: browser/devtools/styleinspector/rule-view.js
> @@ +2145,5 @@
> > + let isOpen = panel.getAttribute("open");
> > +
> > + if (isOpen) {
> > + panel.removeAttribute("open");
> > + panel.style.display = "none";
>
> You can just do panel.hidden = isOpen;
I did that initially, but it didn't work.
Assignee | ||
Comment 13•10 years ago
|
||
I will try again tho
Updated•10 years ago
|
Summary: Add panel for pseudo-class lock options to rule view → Add pseudo-class lock options to rule view
Comment 14•10 years ago
|
||
Comment on attachment 8593478 [details] [diff] [review]
987365.patch [WIP]
Review of attachment 8593478 [details] [diff] [review]:
-----------------------------------------------------------------
Looks ready for an icon and tests. I also think it'd look a little nicer if the bottom border of the search area disappeared when this panel was visible, but we can wait for a proper UX review for that
::: browser/devtools/styleinspector/cssruleview.xhtml
@@ +44,5 @@
> class="devtools-searchinput devtools-rule-searchbox"
> type="search" placeholder="&userStylesSearch;"/>
> <button id="ruleview-searchinput-clear" class="devtools-searchinput-clear"></button>
> </div>
> + <xul:toolbarbutton id="pseudo-class-panel-toggle"
Can you use the html equivalents for toolbarbutton and checkboxes here?
<button class="devtools-button"></button>
<label><input type="check" /> Text</label>
@@ +48,5 @@
> + <xul:toolbarbutton id="pseudo-class-panel-toggle"
> + class="devtools-toolbarbutton command-button command-button-invertable"/>
> + </div>
> + <div id="pseudo-class-panel" class="devtools-toolbar">
> + <xul:checkbox id="pseudo-hover-toggle" checked="false" label=":hover"/>
I was thinking at first we'd need to have strings in the dtd for this, but :hover/:active/:focus are part of the CSS selectors, so probably don't need to be internationalized.
::: browser/devtools/styleinspector/rule-view.js
@@ +1794,5 @@
> });
> },
>
> + refreshPseudoClassPanel: function() {
> + this.hoverCheckbox.checked = false;
When a non element node (like a text node or doctype) is selected, the panel will need to be hidden *or* the controls inside of it disabled. Basically on the equivalent case of (!inspector.selection.isElementNode()).
I'm thinking keeping track of the state of disabled/enabled on the inputs will be easier. Otherwise we'd then need to remember if we should re-show the panel when an element is selected again.
Attachment #8593478 -
Flags: feedback?(bgrinstead) → feedback+
Assignee | ||
Comment 15•10 years ago
|
||
Attachment #8593478 -
Attachment is obsolete: true
Assignee | ||
Updated•10 years ago
|
Attachment #8595612 -
Flags: review?(bgrinstead)
Assignee | ||
Comment 16•10 years ago
|
||
I should note that the hidden attribute does not work for flexbox containers, but I decided to use the hidden attribute to manage whether or not the panel is displaying instead of creating a new attribute.
Comment hidden (obsolete) |
Comment 18•10 years ago
|
||
Comment on attachment 8595612 [details] [diff] [review]
987365.patch [1.0]
Review of attachment 8595612 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/devtools/styleinspector/cssruleview.xhtml
@@ +47,5 @@
> </div>
> + <button id="pseudo-class-panel-toggle" class="devtools-button"></button>
> + </div>
> + <div id="pseudo-class-panel" class="devtools-toolbar">
> + <label><input id="pseudo-hover-toggle" type="checkbox" value=":hover" />:hover</label>
I don't know if that's any better, but to avoid duplication, you could use ::after to generate the label text.
label::after {
content: attr(value)
}
::: browser/devtools/styleinspector/rule-view.js
@@ +2156,5 @@
> + _onTogglePseudoClassPanel: function() {
> + if (this.pseudoClassPanel.hidden) {
> + this.pseudoClassPanel.style.display = "-moz-box";
> + } else {
> + this.pseudoClassPanel.style.display = "none";
You could also specify this in the CSS instead (with !important if needed).
#pseudo-class-panel[hidden] {
display: none;
}
This would also be better if we want to add an slide transition to the toolbar later.
Comment 19•10 years ago
|
||
(In reply to Tim Nguyen [:ntim] from comment #18)
> Comment on attachment 8595612 [details] [diff] [review]
> 987365.patch [1.0]
>
> Review of attachment 8595612 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: browser/devtools/styleinspector/cssruleview.xhtml
> @@ +47,5 @@
> > </div>
> > + <button id="pseudo-class-panel-toggle" class="devtools-button"></button>
> > + </div>
> > + <div id="pseudo-class-panel" class="devtools-toolbar">
> > + <label><input id="pseudo-hover-toggle" type="checkbox" value=":hover" />:hover</label>
>
> I don't know if that's any better, but to avoid duplication, you could use
> ::after to generate the label text.
>
> label::after {
> content: attr(value)
> }
That's currently not possible, see bug 1157575.
Sebastian
Comment 20•10 years ago
|
||
(In reply to Sebastian Zartner [:sebo] from comment #19)
> (In reply to Tim Nguyen [:ntim] from comment #18)
> > Comment on attachment 8595612 [details] [diff] [review]
> > 987365.patch [1.0]
> >
> > Review of attachment 8595612 [details] [diff] [review]:
> > -----------------------------------------------------------------
> >
> > ::: browser/devtools/styleinspector/cssruleview.xhtml
> > @@ +47,5 @@
> > > </div>
> > > + <button id="pseudo-class-panel-toggle" class="devtools-button"></button>
> > > + </div>
> > > + <div id="pseudo-class-panel" class="devtools-toolbar">
> > > + <label><input id="pseudo-hover-toggle" type="checkbox" value=":hover" />:hover</label>
> >
> > I don't know if that's any better, but to avoid duplication, you could use
> > ::after to generate the label text.
> >
> > label::after {
> > content: attr(value)
> > }
>
> That's currently not possible, see bug 1157575.
>
> Sebastian
Oh, I didn't notice the value was on input.
Comment 21•10 years ago
|
||
(In reply to Tim Nguyen [:ntim] from comment #20)
> (In reply to Sebastian Zartner [:sebo] from comment #19)
> > (In reply to Tim Nguyen [:ntim] from comment #18)
> > > Comment on attachment 8595612 [details] [diff] [review]
> > > 987365.patch [1.0]
> > >
> > > Review of attachment 8595612 [details] [diff] [review]:
> > > -----------------------------------------------------------------
> > >
> > > ::: browser/devtools/styleinspector/cssruleview.xhtml
> > > @@ +47,5 @@
> > > > </div>
> > > > + <button id="pseudo-class-panel-toggle" class="devtools-button"></button>
> > > > + </div>
> > > > + <div id="pseudo-class-panel" class="devtools-toolbar">
> > > > + <label><input id="pseudo-hover-toggle" type="checkbox" value=":hover" />:hover</label>
> > >
> > > I don't know if that's any better, but to avoid duplication, you could use
> > > ::after to generate the label text.
> > >
> > > label::after {
> > > content: attr(value)
> > > }
> >
> > That's currently not possible, see bug 1157575.
> >
> > Sebastian
> Oh, I didn't notice the value was on input.
And I didn't notice that pseudo-elements are invalid on <input>s. Learned something. Thanks!
Sebastian
Comment 22•10 years ago
|
||
Comment on attachment 8595612 [details] [diff] [review]
987365.patch [1.0]
Review of attachment 8595612 [details] [diff] [review]:
-----------------------------------------------------------------
Looking good. Needs a simple rebase, and of course an icon and a pass through on UX.
::: browser/devtools/styleinspector/rule-view.js
@@ +1797,5 @@
> });
> },
>
> + refreshPseudoClassPanel: function() {
> + this.hoverCheckbox.checked = false;
Nit:
this.hoverCheckbox.checked = this.hoverCheckbox.disabled = false;
this.activeCheckbox.checked = this.activeCheckbox.disabled = false;
this.focusCheckbox.checked = this.focusCheckbox.disabled = false;
@@ +2156,5 @@
> + _onTogglePseudoClassPanel: function() {
> + if (this.pseudoClassPanel.hidden) {
> + this.pseudoClassPanel.style.display = "-moz-box";
> + } else {
> + this.pseudoClassPanel.style.display = "none";
I agree - if possible please move the display toggling into CSS.
::: browser/devtools/styleinspector/ruleview.css
@@ +28,5 @@
> width: 100%;
> display: -moz-box;
> }
>
> +#pseudo-class-panel {
I'd say set -moz-user-select: none on the labels - I'm getting their text highlighted when clicking on and off the checkbox.
::: browser/devtools/styleinspector/style-inspector.js
@@ +73,5 @@
>
> if (!this.inspector.selection.isConnected() ||
> !this.inspector.selection.isElementNode()) {
> this.view.selectElement(null);
> + this.view.refreshPseudoClassPanel();
Regarding the three calls here, I'd prefer to see this handled in `selectElement` / `refresh` directly within the rule view if possible so the callers don't need to remember to do this whenever calling either of those functions.
::: browser/devtools/styleinspector/test/browser_ruleview_pseudo_lock_options.js
@@ +46,5 @@
> + yield togglePseudoClass(inspector, view, view.focusCheckbox);
> + yield assertPseudoAdded(inspector, view, ":focus");
> + yield togglePseudoClass(inspector, view, view.focusCheckbox);
> + yield assertPseudoRemoved(inspector, view);
> +
Probably should add one more test case that enables all three at once (to make sure setting one doesn't cancel the others).
Attachment #8595612 -
Flags: review?(bgrinstead) → feedback+
Assignee | ||
Comment 23•10 years ago
|
||
Attachment #8595612 -
Attachment is obsolete: true
Comment 24•10 years ago
|
||
Comment on attachment 8597019 [details] [diff] [review]
987365.patch [2.0]
Review of attachment 8597019 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/devtools/styleinspector/rule-view.js
@@ +1151,5 @@
> this.searchClearButton.addEventListener("click", this._onClearSearch);
> + this.pseudoClassToggle.addEventListener("click", this._onTogglePseudoClassPanel);
> + this.hoverCheckbox.addEventListener("click", this._onTogglePseudoClass);
> + this.activeCheckbox.addEventListener("click", this._onTogglePseudoClass);
> + this.focusCheckbox.addEventListener("click", this._onTogglePseudoClass);
It would be better to watch for the change event here, as it also handles the case where you use the keyboard to check the box.
Assignee | ||
Comment 25•10 years ago
|
||
(In reply to Tim Nguyen [:ntim] from comment #24)
> Comment on attachment 8597019 [details] [diff] [review]
> 987365.patch [2.0]
>
> Review of attachment 8597019 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: browser/devtools/styleinspector/rule-view.js
> @@ +1151,5 @@
> > this.searchClearButton.addEventListener("click", this._onClearSearch);
> > + this.pseudoClassToggle.addEventListener("click", this._onTogglePseudoClassPanel);
> > + this.hoverCheckbox.addEventListener("click", this._onTogglePseudoClass);
> > + this.activeCheckbox.addEventListener("click", this._onTogglePseudoClass);
> > + this.focusCheckbox.addEventListener("click", this._onTogglePseudoClass);
>
> It would be better to watch for the change event here, as it also handles
> the case where you use the keyboard to check the box.
Hmm.. it was my understanding the click events also handles keyboard actions. http://www.w3.org/TR/WCAG20-TECHS/SCR35
Assignee | ||
Comment 26•10 years ago
|
||
(In reply to Gabriel Luong [:gl] from comment #25)
> (In reply to Tim Nguyen [:ntim] from comment #24)
> > Comment on attachment 8597019 [details] [diff] [review]
> > 987365.patch [2.0]
> >
> > Review of attachment 8597019 [details] [diff] [review]:
> > -----------------------------------------------------------------
> >
> > ::: browser/devtools/styleinspector/rule-view.js
> > @@ +1151,5 @@
> > > this.searchClearButton.addEventListener("click", this._onClearSearch);
> > > + this.pseudoClassToggle.addEventListener("click", this._onTogglePseudoClassPanel);
> > > + this.hoverCheckbox.addEventListener("click", this._onTogglePseudoClass);
> > > + this.activeCheckbox.addEventListener("click", this._onTogglePseudoClass);
> > > + this.focusCheckbox.addEventListener("click", this._onTogglePseudoClass);
> >
> > It would be better to watch for the change event here, as it also handles
> > the case where you use the keyboard to check the box.
>
> Hmm.. it was my understanding the click events also handles keyboard
> actions. http://www.w3.org/TR/WCAG20-TECHS/SCR35
Just tested to confirm that click events also works when hitting the space bar on the selected checkbox.
Comment 27•10 years ago
|
||
Official icon from shorlander :)
Use #pseudo-class as location hash for the normal state and #pseudo-class-checked for the checked state.
Assignee | ||
Comment 28•10 years ago
|
||
(In reply to Tim Nguyen [:ntim] (limited availability) from comment #27)
> Created attachment 8605952 [details]
> pseudo-class.svg
>
> Official icon from shorlander :)
>
> Use #pseudo-class as location hash for the normal state and
> #pseudo-class-checked for the checked state.
Thanks!
Updated•10 years ago
|
Assignee | ||
Updated•10 years ago
|
Updated•10 years ago
|
Comment 29•10 years ago
|
||
The previous SVG had a small issue, fixed it.
Attachment #8605952 -
Attachment is obsolete: true
Comment 30•9 years ago
|
||
Rebased and included the asset
Attachment #8597019 -
Attachment is obsolete: true
Attachment #8612995 -
Flags: review?(bgrinstead)
Updated•9 years ago
|
Attachment #8612995 -
Flags: review?(bgrinstead) → review?(pbrosset)
Assignee | ||
Comment 31•9 years ago
|
||
Added the transition and justify text alignment. In addition, I needed to change the usage of -moz-box to flexbox, which was needed to justify the text. I discussed with shorlander yesterday and we agreed that justifying the text would be best.
Attachment #8612995 -
Attachment is obsolete: true
Attachment #8612995 -
Flags: review?(pbrosset)
Assignee | ||
Comment 32•9 years ago
|
||
Comment on attachment 8613942 [details] [diff] [review]
987365.patch [4.0]
Most of the code except the button toggle icon and panel checkbox and label css alignments were already reviewed by bgrins. I think we should get +ui-review and finalize the css changes before proceeding with the final review.
Attachment #8613942 -
Flags: ui-review?(shorlander)
Assignee | ||
Comment 33•9 years ago
|
||
Comment 34•9 years ago
|
||
Comment on attachment 8613942 [details] [diff] [review]
987365.patch [4.0]
Review of attachment 8613942 [details] [diff] [review]:
-----------------------------------------------------------------
This looks great! Love the transition and the spacing for the toggles looks good.
Attachment #8613942 -
Flags: ui-review?(shorlander) → ui-review+
Assignee | ||
Updated•9 years ago
|
Attachment #8613942 -
Flags: review?(bgrinstead)
Comment 35•9 years ago
|
||
Comment on attachment 8613942 [details] [diff] [review]
987365.patch [4.0]
Review of attachment 8613942 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/devtools/styleinspector/test/browser_ruleview_pseudo_lock_options.js
@@ +28,5 @@
> + yield addTab("data:text/html;charset=utf-8," + encodeURIComponent(TEST_URI));
> + let {toolbox, inspector, view} = yield openRuleView();
> + yield selectNode("div", inspector);
> +
> + info("Toggle the pseudo class panel open");
We could assert before clicking that's it's hidden to start
::: browser/themes/shared/devtools/toolbars.inc.css
@@ +367,5 @@
> }
>
> /* Searchbox is a div container element for a search input element */
> .devtools-searchbox {
> + display: flex;
This breaks the font preview search box - #preview-text-input and .preview-input-toolbar both need to be switched to display: flex.
Unfortunately with these changes we now have to support both display: flex and display: -moz-box on the .devtools-toolbar class. However, converting them all to display: flex will possibly break the other (xul based) tools.
Maybe we could do something fancy with CSS namespaces to automatically convert the HTML versions to do `width: 100%; display: flex`, or have an additional class for devtools-toolbar-flex or something that does this when opting in (which we could do for rule-view, computed-view, and font-inspector)
Attachment #8613942 -
Flags: review?(bgrinstead)
Assignee | ||
Comment 36•9 years ago
|
||
- Added the extra assertion
- the .devtools-toolbar display: flex changes should only affect the rule view and computed view. There would be issues only if someone started using xul in the rule view and computed view or if the ruleview.css / computedview.css got imported into a xul document, but that is unlikely to happen hopefully.
Attachment #8613942 -
Attachment is obsolete: true
Attachment #8614988 -
Flags: review?(bgrinstead)
Comment 37•9 years ago
|
||
Screenshot of the font inspector with the patch applied
Assignee | ||
Comment 38•9 years ago
|
||
Fixed a css bug where the rule view .devtools-toolbar was no longer aligned with computed view and font inspector because of removing the border-bottom-width
Attachment #8614988 -
Attachment is obsolete: true
Attachment #8614988 -
Flags: review?(bgrinstead)
Assignee | ||
Updated•9 years ago
|
Attachment #8615011 -
Flags: review?(bgrinstead)
Comment 39•9 years ago
|
||
Comment on attachment 8615011 [details] [diff] [review]
987365.patch [6.0]
Review of attachment 8615011 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/devtools/styleinspector/rule-view.js
@@ +1915,5 @@
> return this._populate(true);
> });
> },
>
> + refreshPseudoClassPanel: function() {
I think this function isn't being called in some cases for non-element nodes.
As an example, go to http://bgrins.github.io/devtools-demos/inspector/pseudo.html and select the <h1> and set :hover from the checkbox. Then select the <!-- testing pseudo elements --> comment below. Notice that the hover box is still checked (and enabled).
Can you reproduce this? If so, can you take a look at fixing this (and adding a test case for it). Everything else in the patch looks good to go
Attachment #8615011 -
Flags: review?(bgrinstead) → feedback+
Assignee | ||
Comment 40•9 years ago
|
||
Attachment #8615011 -
Attachment is obsolete: true
Attachment #8615924 -
Flags: review?(bgrinstead)
Assignee | ||
Comment 41•9 years ago
|
||
Updated•9 years ago
|
Attachment #8614991 -
Attachment is obsolete: true
Assignee | ||
Comment 42•9 years ago
|
||
Attachment #8615924 -
Attachment is obsolete: true
Attachment #8615924 -
Flags: review?(bgrinstead)
Attachment #8616085 -
Flags: review?(bgrinstead)
Assignee | ||
Comment 43•9 years ago
|
||
Attachment #8616085 -
Attachment is obsolete: true
Attachment #8616085 -
Flags: review?(bgrinstead)
Attachment #8616146 -
Flags: review?(bgrinstead)
Updated•9 years ago
|
Attachment #8616146 -
Flags: review?(bgrinstead) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 44•9 years ago
|
||
Comment on attachment 8616146 [details] [diff] [review]
987365.patch [9.0]
Review of attachment 8616146 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/themes/shared/devtools/images/pseudo-class.svg
@@ +1,1 @@
> +<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
nit : This needs a license header :
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
Assignee | ||
Comment 45•9 years ago
|
||
Added license. Thanks ntim
Attachment #8616146 -
Attachment is obsolete: true
Attachment #8616227 -
Flags: review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 46•9 years ago
|
||
Added check for elementStyle in refreshPseudoClassPanel
Attachment #8616227 -
Attachment is obsolete: true
Attachment #8616286 -
Flags: review+
Assignee | ||
Comment 47•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 48•9 years ago
|
||
Keywords: checkin-needed
Comment 49•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 41
Updated•9 years ago
|
Keywords: dev-doc-needed
Comment 50•9 years ago
|
||
Two comments:
1. <label><input id="pseudo-hover-toggle" type="checkbox" value=":hover" />:hover</label>
should be:
<div><input id="pseudo-hover-toggle" type="checkbox" value=":hover" /><label>:hover</label></div>
(instead of div, span could also be used)
In order to be able to style the label in case of hover, checked, etc of the input, the label needs to be after the input.
2. The <label>..</label> doesn't span the whole available space, and it doesn't have any hover/active styling, so it is unclear when it is hittable..
Comment 51•9 years ago
|
||
I've updated https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector/How_to/Examine_and_edit_CSS#Setting_hover_active_focus.
Let me know if this is all right!
Flags: needinfo?(gabriel.luong)
Assignee | ||
Comment 52•9 years ago
|
||
(In reply to Will Bamberg [:wbamberg] from comment #51)
> I've updated
> https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector/How_to/
> Examine_and_edit_CSS#Setting_hover_active_focus.
>
> Let me know if this is all right!
Hi Will,
That looks right. I think the screenshots should be updated since the add rule button was also added and the styling of the button was changed.
Thanks!
Flags: needinfo?(gabriel.luong)
Assignee | ||
Comment 53•9 years ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: New toolbar panel
[Suggested wording]: Easily set pseudoclasses through the new pseudoclass panel in the Inspector
[Links (documentation, blog post, etc)]: https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector/How_to/Examine_and_edit_CSS#Setting_hover_active_focus
relnote-firefox:
--- → ?
Comment 54•9 years ago
|
||
(In reply to Gabriel Luong [:gl] from comment #52)
> (In reply to Will Bamberg [:wbamberg] from comment #51)
> > I've updated
> > https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector/How_to/
> > Examine_and_edit_CSS#Setting_hover_active_focus.
> >
> > Let me know if this is all right!
>
> Hi Will,
>
> That looks right. I think the screenshots should be updated since the add
> rule button was also added and the styling of the button was changed.
>
> Thanks!
Thanks Gabriel. I've replaced all the screenshots in that page as part of general Firefox 41 updates.
Keywords: dev-doc-needed → dev-doc-complete
Added to FF41 release notes in Nucleus.
Comment 56•9 years ago
|
||
I reproduced this bug on Firefox Nightly Version 31.0a1
It's verified and fixed on Latest Beta
Build ID 20150907144446
User Agent Mozilla/5.0 (Windows NT 6.1; rv:41.0) Gecko/20100101 Firefox/41.0
Tested OS-- windows7 32bit
QA Whiteboard: [testday-20150911]
Comment 57•9 years ago
|
||
(In reply to Saheda Reza [:Antora] from comment #56)
> I reproduced this bug on Firefox Nightly Version 31.0a1
>
>
> It's verified and fixed on Latest Beta
> Build ID 20150907144446
> User Agent Mozilla/5.0 (Windows NT 6.1; rv:41.0) Gecko/20100101
> Firefox/41.0
>
> Tested OS-- windows7 32bit
Thanks!
Status: RESOLVED → VERIFIED
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•