Ticket #7332 (assigned defect)
ValidationTextBox: change icon placement
| Reported by: | bill | Owned by: | nonken |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.4 |
| Component: | Dijit - LnF | Version: | 1.1.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by bill) (diff)
As per numerous chats with nonken :-) and the dojo meeting that just ended... want to redesign how validation icon shows up for ValidationTextBox.
Want to change it so the icon is outside of the box, like:
These are the detailed goals:
- Icon shouldn't be inside <input> box since it's confusing that you can't type into that area
- style="width: 100px" needs to control the width of the input box, not including the icon, so that it's easy to make TextBox and ValidationTextBox appear aligned
- page shouldn't jump (reflow) when an icon appears
- way to control where the validation icon appears, so we can have fields like
Amount: <input>USD *icon*
Probably
<input dojoType=... iconPath="#myIconNode">USD <span id="myIconNode></span>
If iconPath not specified then it appears immediately after the <input>.
- optional green check mark icon to indicate valid input
Some other possibilities:
- red squiggly underline to show invalid input (in a a11y way).
- showIcon parameter. Default value is true. Developers switch it to false at their own risk (doing so will break a11y, unless we have the squiggly underline). In the old days some people disliked having the icon to the right of the <input> because it created a blank space (reserved for displaying the icon when there was an error).
BTW, the reason we have an icon at all is for color-blind people that can't see the yellow background for invalid fields.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
