Closed Bug 1453940 Opened 8 years ago Closed 8 years ago

Unify the "separate" font panels & therefore eliminate the need for a toggle

Categories

(DevTools :: Inspector, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1463055

People

(Reporter: jensimmons, Unassigned)

References

Details

(Keywords: DevAdvocacy, Whiteboard: [devRel:P1][designer-tools])

At the moment (April 13), the Variable Font (VF) DevTools features that landed in Nightly (behind a flag) require the user to click a tiny [Aa] button to "turn on" or get to the VF tools. We've been having discussion about how to improve the button experience, where to put the button, how to make it clearer what it does... but I realized: why do we have a button at all? Why aren't the VF tools simply unified into the same panel as the Font family tools that exist now. If you look at my drawings for the entire suite of Fonts tooling, you see the plan is for the Font Family information, the basic Font CSS level 2 tools (like adjusting font-size), the Font level 3 tools (Font Features, like kerning), and the Fonts level 4 tools (Variable Fonts) to all live together in an integrated panel. We'll iterate our way to the full tool set, but I believe looking at the roadmap gives us the answer to these questions of what to do now. Currently, if I inspect a particular headline, I see this: https://monosnap.com/file/qgcrRgVEAH7z2mhVk45DLjhiXHVfoN.png and I can click on the tiny [Aa] and see this: https://monosnap.com/file/tSFfCgA1wqdGpI5qn85LWeGqnYRrwX.png I'd like to propose that instead, when you inspect this headline (which is typeset in a Variable Font), and go to the Font pane, you see this: https://monosnap.com/file/BRpbi75w65lvkDzuCqxlRd7iDtnxAt.png Or the same image, zoomed in to only show the fonts pane: https://monosnap.com/file/eeSsgG7IGBIPv9GKA6MVYectZ7SDFM.png
Summary: Unify the "separate" font panels & therefore the need for a toggle → Unify the "separate" font panels & therefore eliminate the need for a toggle
Razvan wrote in Slack: The main constraint we have for the Font Editor is that we need to *identify where the adjusted CSS property values need to go (i.e. in which stylesheet rule)*. This is the reason for that Aa toggle. It ties the editor to the output rule in the Rule view. In absences of this explicit toggle, we don’t know where to write the property changes. Options: 1. We can write to the inline style of the selected node. That actually solves a lot of problems with regards to properties overwritten by rules with higher specificity selectors (for which we don’t yet have a technical and UI solution). But this goes against our longer-term intent of offering the author a diff file or a way to pull their DevTools changes into their editor. Inline styles won’t make it into the diff. Writing to inline style also has the disadvantage of not being able to preview multiple elements at the same time (think editing rules that match multiple headers, paragraphs, etc.). It also prevents tweaking between multiple media queries. 2. Be “smart about it” and identify CSS rules that match the element and place new property values where we find existing property values. This also has disadvantages: a) being opaque to the author; we may be updating rules they don’t have in the view; b) making wrong assumptions about where **new property values** go in the stack of rules we identified; c) accidentally impacting other elements which match the rule we optimistically mutated; d) _there be dragons_ in this approach (many edge-cases) *Suggestion* An alternative which might prove controversial, but solves both requirements (having one font panel, identifying output rule) is this: - No longer showing the “Fonts” panel as a free-standing summary view of fonts which apply to the selected node. - Instead, require the author to click the Aa toggle in a rule to trigger the “Fonts” panel which shows the editor which also incorporates the preview from the summary view. This will require additional UX thinking and re-engineering of the “Fonts” panel. This would be a significant change that can’t fit within the Fx61 release.
Severity: normal → enhancement
See Also: → 1463055
Priority: -- → P3
Can we resolve this bug as duplicate?
Flags: needinfo?(rcaliman)
Flags: needinfo?(pbrosset)
Yes, but Razvan will know which bug exactly to mark it as a duplicate of.
Flags: needinfo?(pbrosset)
It's not a duplicate. When I started working on this after the meeting in which we agreed on the new direction I started logging bugs against the font editor meta (Bug 1441576) instead this one. These are some of the parts: - Bug 1463055 - Bug 1464796 - Bug 1462589 Given that the new direction of the Font Editor, I propose we close this bug and keep tracking against Bug 1441576.
Flags: needinfo?(rcaliman)
Product: Firefox → DevTools
Solved by the patches for Bug 1463055 and Bug 1464796.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Component: Inspector: Fonts → Inspector
You need to log in before you can comment on or make changes to this bug.