1.4.0
🚀 Added
- Added a
requirementLabel
prop to theFormLabel
component - Added
fieldRef
prop to theTextField
React component to expose a ref on theinput
/textarea
element #171 - Added
max
andmin
props toTextField
component. #183 - Add
ds-c-alert--hide-icon
CSS class andhideIcon
React prop to hide Alert component's icon #182, #187 - Added a
checkedChildren
anduncheckedChildren
prop to theChoice
component. These props conditionally display content below the Choice field when the field is checked or unchecked, respectively. #173 - Added
ds-l-form-row
to provide tighter spacing on form fields laid out using grid classes #180 - Added
ds-l-col--auto
to allow grid columns to span their content's natural width (useful for form fields) #180 - Added
DateField
CSS and React component #183
💅 Changes
- Removed
.ds-c-field--select
. We instead look at whetherds-c-field
is added to aselect
element instead. #179
🛠 Fixed
- Remove Chrome's new default border-radius #174
Before | After |
---|---|
- Added padding to the select element so that text doesn't overlap with the icon when the field's width is set to
auto
#179