The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Documentation code samples updated to use standard React hooks.
- Improved emitted type definitions which depend on
Omit
. ColorGrid
- New component!
Disclosure
- New component!
SideTabs
- Prop
onChangeTab
deprecated in favor ofonTabChange
, for naming consistency.
- Prop
Button
,DropdownSelect
,Stepper
,TextArea
,TextField
- Updated border color.
SideTabs
- New component!
Spinner
- Prop
alt
is now required because this package does not include localized strings by default.
- Prop
TextFieldGroup
- Minor revisions to styling.
Badge
- New component!
Button
- Added
lowEmphasisDark
kind.
- Added
Button
,Checkbox
,DropdownSelect
,Radio
,Stepper
,Tabs
,TextArea
,TextField
,ToggleSwitch
- Improved accessibility with with higher color contrast ratios across all states as well as an updated focus indicator.
Button
,Tabs
,TextLink
,ToggleSwitch
- Updated focus indicators to use
:focus-visible
- Updated focus indicators to use
Stepper
- Corrected props typedefs to allow all native
<input>
attributes.
- Corrected props typedefs to allow all native
Sticker
- New component!
Tabs
Corrected a keyboard navigation bug when using'manual'
activation mode.TextArea
- Added
autoHeight
prop, which causes the<textarea>
element to grow (or shrink) to fit its content as the user types.
- Added
TextArea
,TextField
- Adjusted wrapping behavior of validation messages.
TextFieldGroup
- New component!
TextLink
- Updated colors and changed hover state to underline.
Stepper
- Behavior of the up/down buttons has been corrected in the case that the user has edited, but not yet confirmed, the field value.
- (Corrects an error that only affected Tableau's internal systems.)
Spinner
- Removed previous incorrect advice which suggested the use of
aria-busy
.
- Removed previous incorrect advice which suggested the use of
TextField
type
attribute is now explicitly defaulted to'text'
, to allow for easier querying.
ToggleSwitch
- Fixed height of right-aligned switches to match left-aligned switches.
-
TextLink
- Deprecated
lowEmphasis
kind in favor oflightweight
. Added newinline
kind.
- Deprecated
-
ToggleSwitch
- New component!
TextField
- A field with unspecified width no longer grows when the clear button is shown.
- Added
-webkit-
vendor prefixing for flexbox properties, for better compatibility with certain components of Tableau Desktop.
Checkbox
- Updated visual style of
indeterminate
checkboxes.
- Updated visual style of
- Fixed invisible text on disabled input elements in Safari.
- Pinned the
typestyle
dependency to version2.0.4
to ensure compatibility with IE11. Spinner
- Fixed
alt
prop getting applied to the wrong element.
- Fixed
Stepper
- Allow inputting a partial value which falls outside the min/max range.
TextField
/TextArea
/DropdownSelect
- Allow long messages to wrap to multiple lines when container is width-constrained.
- Improved vertical alignment of validation state icons.
Stepper
- Allow
value
to beundefined
when disabled.
- Allow
Tableau 2019.4 includes a visual refresh of some UI elements for improved Accessibility. This release of Tableau UI includes updates to match. In addition, Tableau UI now requires React 16.8 or above.
Button
- Deprecated
kind
values:filled
andblackText
have been internally remapped tooutline
. - New prop:
density
for adjusting padding in a consistent manner.
- Deprecated
Checkbox
andRadio
- Updates to focus indicator implementation for consistency and clarity.
- Internal DOM structure changed.
DropdownSelect
- New prop:
label
. outline
,line
, andtext
styles now share the same arrow icon. (Icon oficon
style is unchanged.)
- New prop:
Stepper
- New prop:
label
. - Undocumented props are now passed to the
<input>
rather than the container<div>
. This is important for e.g.aria-labelledby
. - Documentation:
disabled
is no longer listed explicitly in documentation, as it is identical to the native<input>
prop.
- New prop:
TextField
- New prop:
valid
used to set validation state of the field, with accompanying visual styling and ARIA metadata. - New prop:
message
replaceserrorMessage
for displaying a message under the field -- can be combined withvalid
to style as a validation message. - Changed props:
id
andstyle
are now passed to the<input>
, not the root<div>
. - Removed prop:
errorMessage
. Instead, setmessage='some error message' valid={false}
. - The "floating placeholder/label" behavior particular to the
line
kind has been removed. Placeholder/label behavior is now consistent across kinds and usages. - Documentation:
placeholder
,type
, andvalue
are no longer listed explicitly in documentation, as they are identical to their respective native<input>
props.
- New prop:
- Added
TextArea
component - Added
TextLink
component - Added
alt
prop toSpinner
Checkbox
,DropdownSelect
,Radio
, andTextField
: whenid
prop is provided, it is now correctly passed to the form element. Whenid
prop is not provided, these components will auto-generate an id for internal use (as before).TextField
no longer shows the clear button when disabled.
- #21: "TS Property '...' does not exist on type"
TextField
:- no longer reserves space for a label when
label
prop isundefined
. - no longer shows an inner shadow in iOS Safari.
- error label text is now 10px (was 9px).
- clear button behavior is improved and alignment corrected.
- no longer reserves space for a label when
Button
:- Kinds have been simplified to
primary
,outline
, anddestructive
. - Deprecated kinds:
attentionRed
,blackText
,filled
, andfilledGreen
. For now these kinds are internally remapped to the new kind names, but will be removed in a future release. Please migrate per the jsdoc documentation.
- Kinds have been simplified to
DropdownSelect
border is now green when focused (matchingTextField
).- Internally generated
id
attributes are now seeded rather than starting from 0. - Corrected several documentation typos.
- #15: Added
Stepper
Component
- #20:
TextField
with numeric value 0 displays 0 above the input
- #12:
Button
,Checkbox
,DropdownSelect
,Pill
,Radio
,Spinner
, andTextField
now properly Forward Refs.- Because
ref
was previously non-functional on these components, this change is considered additive rather than breaking.
- Because
- Added missing CHANGELOG.md entries
- Added missing README.md to npm package
- Restored documentation for
className
,id
, andstyle
onTextField
due to particular behavior on that component. - Improved the appearance of the
Spinner
graphic. DropdownSelect
arrow icon will now remain when passing abackground
style override.- Left-Justified Tabs can expand past their container
- #11:
Pill
component is not being exported
- Renamed
onChange
callback onTabsProps
toonTabChange
to avoid shadowing native HTMLonChange
event. - When
aria-label
is provided onTabsProps
, it is now applied to the root container rather than the tabs list.
- Added
Pill
Component
- Removed extraneous documentation for native props (e.g.
className
,id
,style
).
- Undefined
onChange
Prop onTabs
Throws Error when Changing Selected Tab
TextField
label margin displays even without label
- Misalignment of Clear Button in
TextField
- Added
Tabs
Component - Added
Spinner
Component - Added
Button
Component - Added
Checkbox
Component - Added
Radio
Component - Added
TextField
Component - Added
DropdownSelect
Component