Esri / solutions-erg-widget

The Emergency Response Guide (ERG) widget allows users to determine potential hazards based on the type of chemical spill and user-selected location on the map.
Apache License 2.0
6 stars 4 forks source link

The Show Fire Isolation Zone toggle options are reversed #67

Closed lfunkhouser closed 6 years ago

lfunkhouser commented 6 years ago

Issue reported by @MikeTschudi

Bug or Enhancement

The Show Fire Isolation Zone toggle position for "on" and "off" are reversed in the UI.

Repo Steps or Enhancement details

The user slides the toggle right (red) to turn it off and slides it left (green) to turn it on, as shown in the following screenshots:

Screenshots

image image

The standard for iOS-style toggles is slide right to get it on/green and left to get it off/red. image

Version found: ERG December 2017 WAB 2.6

adgiles commented 6 years ago

If we decide we do want to change this it is a very easy fix. In the style.css file change the following lines:

239: background: #e04f1d; to background: #adadad; 257: right : 2px; to right: 14px; 282: right : 14px; to right: 2px;

This will give the following:

Off: capture On: capture1

adgiles commented 6 years ago

Addressed in PR https://github.com/Esri/solutions-erg-widget/pull/71

topowright-zz commented 6 years ago

verified and ready to close