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
Blurred Lighthouse Report Viewer box when launching Chrome extension #10010
Comments
Thanks for updating the issue! Just a minor point to raise with the changes (if you want to re-open the issue, if you think it worth tackling). Current changes .viewer-placeholder-inner.lh-loading {
filter: blur(2px) grayscale(1);
pointer-events: none;
cursor: wait
} You have added the appropriate attributes (i.e. The problem is, when you have Given the structure of the document is as so during load: <div class="viewer-placeholder">
<div class="viewer-placeholder-inner lh-loading">
<div>...</div>
<div>...</div>
</div>
</div> It might make more sense to do the following as a quick fix .viewer-placeholder-inner.lh-loading {
filter: blur(2px) grayscale(1);
cursor: wait
}
.viewer-placeholder-inner.lh-loading > div {
pointer-events: none;
} Though I think it would perhaps be better still (if it's not too much faff) to apply the <div class="viewer-placeholder lh-loading">
<div class="viewer-placeholder-inner">
...
</div>
</div> .viewer-placeholder.lh-loading {
cursor: wait
}
.viewer-placeholder.lh-loading .viewer-placeholder-inner {
filter: blur(2px) grayscale(1);
pointer-events: none;
} I appreciated that you are creating higher specificity here by nesting the Happy to do a PR if that helps? |
Thanks @awdltd a PR would be great! :) |
…on viewer-placeholder element - fixes GoogleChrome#10010
The message in the loading page after launching Lighthouse via the Chrome extension has blurred styling (
filter: blur(2px)
) that makes the text difficult to read. It's not immediately clear why.Element reads:
Element selector:
See screenshot below for how it displays:
This styling persists for the duration of Lighthouse waiting for the results (whilst LH is loading); the result page renders correctly.
The blurring is clearly intended to signify 'loading', and the content of the window is clearly meant to be disabled as a results (as a page has already been selected, and Lighthouse is waiting on the results) but the currently styling seems somewhat non-intuitive.
I would suggest that it would make more sense greying out the content (rather than blurring) and adding an appropriate cursor (e.g.
cursor: not-allowed
orcursor: wait
).The element is still interactive too, despite being blurred, which could add further confusion. Perhaps adding
pointer-events: none
too would avoid potential conflicts using the extension.Provide the steps to reproduce
What is the current behavior?
The introductory banner loads with blurred styling
What is the expected behavior?
For the box to not be blurred, and instead be fully legible and/or greyed out (and, if disabled, disable interactivity appropriately)
Environment Information
The text was updated successfully, but these errors were encountered: