This repository was archived by the owner on Sep 14, 2021. It is now read-only.
v17.0.0
<a name"17.0.0">
17.0.0 (2017-02-21)
Features
textfield: Improve TextField validity options (#128) (291eb00c)
Breaking Changes
FieldMessage:
- Rewrite of message/help interface.
- Message uses Text component in which text colours change on prop valid (true,false,null/undefined).
- Message default style is Text secondary.
- Message icon also uses prop valid (true,false).
- Message colour can be overridden using messageProps which as passed directly to Text. Removal of help in favour using message.
- Message supports value false which turns off margin-bottom for when you don't want to reserve white space.
TextField:
- Rewrite to use new FieldMessage
- Removal of inline-block on root div.
MonthPicker:
- Rewrite to use new FieldMessage
Dropdown:
- Rewrite to use new FieldMessage
Textarea:
- Rewrite to use new FieldMessage
StyleGuideProvider:
- Removed global input margin-bottom 0px rule.
TickCircle:
- Added filled version of icon.
Upgrade Guide
The message, help & invalid interface into field has changed to using just message and changing the style of messages with a combination of valid and messageProps.
-
Help messaging has changed from using help to using just message for the text (also helpProps to messageProps if being used).
-
Invalid/Critical message has changed from invalid=true to valid=false, message interface is the same for the text.
-
Positive (new) message is used by using valid=true and message for the text.
-
Positive message with secondary colouring (new) is used by using valid=true, messageProps={ secondary: true } and message for the text.
(291eb00c)