ocket8888 opened a new issue #2980: Use <optgroup>s instead of hyphens
URL: https://github.com/apache/trafficcontrol/issues/2980
 
 
   A small enhancement to tenant drop-down selection lists in Traffic Portal 
would be to use the HTML5 `<optgroup>` tag to group tenants by their parents. 
I'd suggest making "root" its own parent.
   
   Example.:
   
   ```html
   <label for="tenant">Select a tenant</label>
   <select id="tenant">
       <optgroup label="root">
           <option>root</option>
           <option>tenantWithNoChildren</option>
           <option>tenentWithTwoChildren</option>
       </optgroup>
       <optgroup label="tenantWithTwoChildren">
           <option>Child1</option>
           <option>Child2</option>
       </optgroup>
   </select>
   ```
   Rendered (in Firefox 63):
   
   
![optgroup](https://user-images.githubusercontent.com/6013378/47868036-d5810400-ddc8-11e8-8c4d-a31353f31e6f.png)
   

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


With regards,
Apache Git Services

Reply via email to