-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor report dom, report ui features, etc. #12254
Comments
Been spending time on this stuff, so i'll brain-dump here.. first, report-ui-features has two distinct sets of functionality: stuff that's related to the topbar, and stuff that isnt. non-topbar functionality in
|
And more relevant to that linked comment, here's 3 of our report clients' DOM structures: Standalone report
DevTools report
PSI report (which has two LH reports)
A few things I noticed:
|
Current thinking on a new DOM structure.... .lh-vars /* .lh-root merges into that. */
.lh-topbar
.lh-main /* rename from lh-container, basically */
.lh-header /* contains sticky-header and header-container (which both have 5 gauges, typically) */
.lh-categories
.lh-footer Alternatively, we remove this |
SGTM 👍 |
Aren't a number of these elements/classes (mostly I am thinking of |
To me the idea of providing access to the components individually means an embedder can choose to organize them however they desire for layout purposes. In the root report we can choose to have a wrapper div if we really want one, but others shouldn't have to care about it :) |
i also had been assuming that the current |
Next action: I'll split off the topbar features to |
There's probably something still here worth attempting, but it's not on any of our radars atm. Closing until someone gets inspired again :) |
lh-root, report-container, main, oh my!
see #12201 (comment)
The text was updated successfully, but these errors were encountered: