This repo is part of the Westpac GUI and is setup as a submodule. Please submit any issues with this or any other module in our GUI-source repo
➠ BOM | BSA | STG | WBC | WBG | BT
Inputs are the most common form controls. Text-based input fields include support for all HTML5 types: text, password, datetime, datetime-local, date, month, time, week, number, email, url, search, tel, and colour. The date element triggers the date selector in compliant browsers.
- v3.0.2 -
LESS/CSSHTMLJS- Migrate to relative CSS units (a11y) #456
- v3.0.1 -
LESS/CSSHTMLJS- Dependency: GUI_colors v3.0.2, GUI_text-styling v4.0.5
- Mapped new border colour
@color-BorderDarkfrom Colors v3.0.2 #433 - Making use of the new accessible focus outline styling from Text-Styling v4.0.5 #433
- Disabled number input spinners/steppers in WebKit
- New size by character length classes (
.input-width-*) - Removed
.form-groupstyling; now part of new Form-Base module - Removed fieldset and legend styling
- New
.input-field-errorclass. Error styling is now applied per input, rather than via a parent.has-dangerclass. This allows us to indicate errors on individual inputs within grouped inputs. Error styling no longer applies text colour styling; now simply a border colour.
- v3.0.0 -
LESS/CSSHTMLJS- Changed the input field sizing classes to our new naming convention #380
- Updated input sizing and added input line-height
- Select inputs are now block level by default as per other text inputs; use
.form-inlinewrapping for inline - Restyled and simplified select input markup; wrapping element (
.input-field-select-wrapper) no longer required, SVG caret supplied via Grunticon, removed Hero colour fill and.input-addon-faintmodifier class - Dropped the
.input-field-select,.input-field-select-{size}and.input-field-select-wrapperclasses; simply use the common.input-fieldand.input-field-{size}classes on all input types (input, textarea and select) - Removed fieldset sizing options; sizing already available per input via sizing classes
.input-field-{size} - Merged
:disabledandreadonlystate styling; using the former’s styling - Added default styling for label element; incl. bottom margin
- v2.0.1 -
LESS/CSSHTMLJS- Fanfare, Drum roll … We’ve added another brand. Yay! 👏
- v2.0.0 -
LESS/CSSHTMLJS- To make it easier to switch brands with Less we’ve added a brand variable. Building multibrand sites has never been this easy! #203
- v1.0.3 -
LESS/CSSHTMLJS - v1.0.2 -
HTMLLESS/CSSJS- Our recent move to system fonts means we trust the system to take care of something as basic as the display of a font. Turns out you can’t trust Microsoft with such a task as they increase the size of the font rather than just the face. We fixed that and wrote an ~~angry~ constructive letter to Redmond. It’s always important to vent your frustrations in a productive manner. #174
- v1.0.1 -
LESS/CSSHTMLJS- Somewhere at Microsoft a person decided that placeholder text should look like input text. Making it less placeholder text and more like... text. We were sure there was logic in there somewhere but we couldn't find it so we made it a tint in all browsers (including the elusive IE) to match the default styling of sensible browsers.
- v1.0.0 - Initial port
Copyright (c) 2019 Westpac. Licensed under the GNU GPLv2.