Bug 1332090 - Add Contrast Ratio component to the Color Widget. r?gl draft
authorRahul Chaudhary <rahulch95@gmail.com>
Mon, 20 Feb 2017 23:11:15 -0500
changeset 487177 8cf9d55bf4b04a7750a911fab9608098ccec39e3
parent 487167 b1a4ac8eefe510f4c57792da9be4fa3add5e00b8
child 546412 d3c89582c4e99418fc3569070a0b70339c7c6875
push id46170
push userbmo:rahulch95@gmail.com
push dateTue, 21 Feb 2017 04:12:11 +0000
reviewersgl
bugs1332090
milestone54.0a1
Bug 1332090 - Add Contrast Ratio component to the Color Widget. r?gl MozReview-Commit-ID: JLaMA7fAZnP
devtools/client/shared/widgets/color-widget.css
--- a/devtools/client/shared/widgets/color-widget.css
+++ b/devtools/client/shared/widgets/color-widget.css
@@ -73,26 +73,28 @@ http://www.briangrinstead.com/blog/keep-
   position: absolute;
   top:0;
   left:0;
   bottom:0;
   right:0;
 }
 
 .colorwidget-contrast {
+  color: var(--theme-content-color1);
   padding-top: 4px;
 }
 
 .colorwidget-colorswatch, .colorwidget-contrast-ratio, .colorwidget-contrast-grade {
   display: inline-block;
   width: 24%;
 }
 
 .colorwidget-colorswatch {
   text-align: center;
+  color: transparent;
 }
 
 .colorwidget-color {
   position: absolute;
   top: 0;
   left: 0;
   bottom: 0;
   right: 20%;