From 00a0e5868ca794c74917d9dda54f251ad0ec8cab Mon Sep 17 00:00:00 2001 From: Liam Morley Date: Wed, 27 Oct 2021 10:09:02 -0400 Subject: [PATCH] Specify harvey ball state classes as BEM modifier, not element --- app/assets/stylesheets/dashboard.scss | 12 ++++++------ app/views/dashboard/_subcategory_card.html.erb | 2 +- app/views/dashboard/index.html.erb | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/app/assets/stylesheets/dashboard.scss b/app/assets/stylesheets/dashboard.scss index f5813ed0..eb249ca9 100644 --- a/app/assets/stylesheets/dashboard.scss +++ b/app/assets/stylesheets/dashboard.scss @@ -74,27 +74,27 @@ stroke: $black; } -.harvey-ball__ideal { +.harvey-ball--ideal { fill: $purple; } -.harvey-ball__approval { +.harvey-ball--approval { fill: $purple; } -.harvey-ball__growth { +.harvey-ball--growth { fill: $gold; } -.harvey-ball__watch { +.harvey-ball--watch { fill: $gold; } -.harvey-ball__warning { +.harvey-ball--warning { fill: $white; } -.harvey-ball__no_zone { +.harvey-ball--no_zone { stroke: $gray-2; fill: $gray-3; } diff --git a/app/views/dashboard/_subcategory_card.html.erb b/app/views/dashboard/_subcategory_card.html.erb index f5f39cf9..bcae2940 100644 --- a/app/views/dashboard/_subcategory_card.html.erb +++ b/app/views/dashboard/_subcategory_card.html.erb @@ -1,6 +1,6 @@
- +
<%= subcategory.name %>
diff --git a/app/views/dashboard/index.html.erb b/app/views/dashboard/index.html.erb index 511b4433..cfbc8e80 100644 --- a/app/views/dashboard/index.html.erb +++ b/app/views/dashboard/index.html.erb @@ -51,19 +51,19 @@
Warning
- + - + - + - + - +
Ideal