Skip to content

Commit

Permalink
extension(popup): keep feedback class (#5872)
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet authored and paulirish committed Aug 21, 2018
1 parent 79a9a5f commit 1bd8b5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
7 changes: 5 additions & 2 deletions lighthouse-extension/app/src/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,14 @@ async function onGenerateReportButtonClick(background, settings) {
}
isRunning = true;

// resetting status message
const statusMsg = find('.status__msg');
statusMsg.textContent = 'Starting...';

showRunningSubpage();

const feedbackEl = find('.feedback');
feedbackEl.textContent = '';

const {selectedCategories, useDevTools} = settings;
/** @type {LH.Flags} */
const flags = {throttlingMethod: useDevTools ? 'devtools' : 'simulate'};
Expand All @@ -185,7 +188,7 @@ async function onGenerateReportButtonClick(background, settings) {
feedbackEl.textContent = message;

if (includeReportLink) {
feedbackEl.className = 'feedback-error';
feedbackEl.className = 'feedback feedback-error';
feedbackEl.appendChild(buildReportErrorLink(err));
}

Expand Down
10 changes: 2 additions & 8 deletions lighthouse-extension/app/styles/lighthouse.css
Original file line number Diff line number Diff line change
Expand Up @@ -188,20 +188,14 @@ html, body {
position: absolute;
color: #fff;
bottom: 10px;
left: 16px;
left: 14px; /* 16px - 2px of shadow from the options button */
width: 180px;
line-height: 1.45;
}

.feedback-error {
background-color: var(--lh-blue-color);
position: absolute;
color: #fff;
bottom: 10px;
left: 16px;
width: 180px;
line-height: 1.45;
font-size: .9em;
min-height: 38px;
}

/* 1. scrollbar when extension is too small */
Expand Down

0 comments on commit 1bd8b5e

Please sign in to comment.