You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2019/11/12 19:03:09 UTC

[GitHub] [trafficcontrol] mitchell852 commented on a change in pull request #4108: adds deep coverage zone routed percentage to TP's routing widget

mitchell852 commented on a change in pull request #4108: adds deep coverage zone routed percentage to TP's routing widget
URL: https://github.com/apache/trafficcontrol/pull/4108#discussion_r345388240
 
 

 ##########
 File path: traffic_portal/app/src/common/modules/widget/routing/widget.routing.tpl.html
 ##########
 @@ -36,6 +36,20 @@ <h2>Routing Methods</h2>
         </div>
         <div class="clearfix"></div>
     </div>
+    <div class="widget_summary">
+        <div class="w_left w_25">
+            <span>Deep Coverage Zone</span>
+        </div>
+        <div class="w_center w_55">
+            <div class="progress">
+                <div class="progress-bar" role="progressbar" ng-style="{'width': deepCoverageZone + '%'}" style="background-color: #3063BD;"></div>
 
 Review comment:
   > Why not use [the `<meter>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meter)?
   > It'd look like:
   > 
   > ```
   > <div class="widget_summary">
   > 	<div class="w_left w_25">
   > 		<label for="deepCZ-meter">Deep Coverage Zone</label>
   > 	</div>
   > 	<div class="w_center w_55">
   > 		<meter min=0 max=100 ng-value="deepCoverageZone" id="deepCZ-meter">{{ ::deepCoverageZone | number:3}}%</meter>
   > 	</div>
   > 	<div class="clearfix"></div>
   > </div>
   > ```
   > 
   > Which has the added benefit of a more appropriate `role` than `progressbar`, and adding proper labeling relationships.
   
   I gave that a shot. didn't really work so just going to stick with the current approach.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services