Consider using the new shared Accordion
Categories
(DevTools :: Inspector, enhancement, P3)
Tracking
(firefox72 fixed)
Tracking | Status | |
---|---|---|
firefox72 | --- | fixed |
People
(Reporter: gl, Assigned: fvsch)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
In Bug 1518487, an accessible accordion component that is identical to debugger.html will be landed. We should consider moving all the Accordion components that are used in the inspector over to it.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Comment 3•5 years ago
|
||
bugherder |
Reporter | ||
Comment 4•5 years ago
|
||
@fvsch: Just wanted to get an executive summary about your patch. Does this change move the entire devtools to using a shared Accordion component?
Thank you for the clean up as well!
Assignee | ||
Comment 5•5 years ago
|
||
So this patch moved all of Inspector to use the new shared Accordion component.
Other panels already used that component (Accessibility) or were untouched (Debugger, Network).
- Untouched:
devtools/client/debugger/src/components/shared/Accordion.js
- Removed:
devtools/client/inspector/layout/components/Accordion.js
- Tweaked to keep feature parity:
devtools/client/shared/components/Accordion.js
On top of that, there are some CSS changes across all remaining Accordion and Accordion-like implementations to make sure we use the same background color (normal and on hover) across DevTools, because that was a low hanging fruit (fixes https://github.com/firefox-devtools/ux/issues/24).
Next I'll probably want to use the shared Accordion in Network, which has a bunch of small visual and UX issues with its TreeView-styled-as-accordion (bug 1403203).
For now I'm not considering replacing the Debugger's own Accordion, which works well. Not sure it's worth the effort, but we'll see.
Description
•