Skip to content
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

GH-1246 grey out Trackers Blocked count from Summary View when Ghoste… #122

Merged
merged 2 commits into from Jul 5, 2018
Merged
Changes from all commits
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

@@ -273,7 +273,7 @@ class Summary extends React.Component {
*/
render() {
const { abPause } = this.state;
const { is_expert, is_expanded } = this.props;
const { is_expert, is_expanded, paused_blocking } = this.props;
const showCondensed = is_expert && is_expanded;

const summaryClassNames = ClassNames('', {
@@ -284,6 +284,7 @@ class Summary extends React.Component {

const blockedTrackersClassNames = ClassNames('blocked-trackers', {
clickable: is_expert,
paused: paused_blocking,
});
const pageLoadClassNames = ClassNames('page-load', {
fast: +this.state.trackerLatencyTotal < 5,
@@ -101,6 +101,8 @@
font-weight: 600;
margin-bottom: 40px;
.blocked-trackers .value { color: #e74055; }
.blocked-trackers.paused .value { color: #f9d0d5; }
.blocked-trackers.paused .text { color: #cccccc; }
.page-load .value { color: #ffc063; }
.page-load.fast .value { color: #9ecc42; }
.page-load.slow .value { color: #e74055; }
ProTip! Use n and p to navigate between commits in a pull request.