Skip to content

14.0.0

Compare
Choose a tag to compare
@LJKaski LJKaski released this 19 Apr 12:34
· 249 commits to develop since this release
a613191

Release notes

ErrorSummary (#825)

  • Introduce the <ErrorSummary> component

StatusText, Dropdown, Checkbox, DateInput, MultiSelect, SingleSelect, SearchInput, TextInput, TimeInput, Textarea, Pagination (#823)

  • Breaking change: Add icons to status text to signify error or success status

Block (#830)

  • Breaking change: Change spacing props to use CSS spaced implementation instead of style prop. This reverts the implementation back to the way it was in library version 12

Button (#832)

  • Breaking change: Adjusted paddings to accommodate use with only icon and no content
  • Breaking change: ButtonProps now require either children or aria-label
  • Breaking change: Decrease button top and bottom padding by 1px to fix wrong total height. Increase horizontal padding by total of 2px in borderless buttons
  • Add loading and ariaLoadingText props. Applies a loading spinner to the button and disables it
  • Remove redundant never typing from LoadingProps

ActionMenu (#807)

  • Breaking change: Remove redundant custom styling via "icon only" class
  • Breaking change: Decrease button top and bottom padding by 1px to fix wrong total height. Increase horizontal padding by total of 2px in borderless buttons

Checkbox (#837, #845)

  • Breaking change: change disabled variant hint text color to match the label color
  • Breaking change: Change styling of the checked state and focus indicator
  • Fix an issue where checkmark was not visible in disabled state

TextInput (#835)

  • Breaking change: Remove redundant root level font styles and set line-height to 0 on top level.
  • Breaking change: Increase character counter top margin by 1px

Textarea (#835)

  • Breaking change: Set the correct bottom margin for the label
  • Breaking change: Increase character counter top margin by 1px

RadioButton (#809)

  • Breaking change: Change focus indicator styling

SideNavigation (#815)

  • Breaking change: Remove forced uppercase text from level 1 <SideNavigationItem>

ServiceNavigation (#815)

  • Breaking change: Remove forced uppercase text from <ServiceNavigationItem>

LinkList (#822)

  • Breaking change: Change ariaDescribedBy prop to ariaLabelledBy.

Tooltip (#833, #842)

  • Prevent an unwanted props from showing up in DOM

ExpanderGroup (#834)

  • Remove aria-expanded from open/close all button

LinkListItem (#831)

  • Remove redundant color prop from default icon

StatusText (#840)

  • Set icon to render only when component has children

SingleSelect (#842)

  • Remove redundant never typing from LoadingProps
  • Remove redundant never typing from AllowItemAdditionProps
  • Fix filter input value parsing when items or selectedItem prop changes
  • Add onChangeWithoutDebounce() prop. Inteded to be used to set the loadingprop

MultiSelect (#842, #849)

  • Fix an issue where the item list of MultiSelect component would be detached from the input field if the dimensions of the container containing the MultiSelect change. This would happen e.g. if using the MultiSelect component inside a Modal component.
  • Remove redundant never typing from LoadingProps
  • Remove redundant never typing from AllowItemAdditionProps
  • Add onChangeWithoutDebounce() prop. Inteded to be used to set the loadingprop

DateInput (#844, #816)

  • Add datePickerProps prop
  • Add selected date or corresponding translation for the selected date button in date picker
  • Remove redundant aria-attributes from DOM

Notification (#814)

  • Make close button optional via showCloseButton prop

Dropdown (#841)

  • Fix an issue where visible selected value did not get updated when changing application language (DropdownItem visible text changes but value remains the same)
  • Add generics support for Dropdown and DropdownItem

VisuallyHidden (#842)

  • Fix forwardedRef behavior

General (#836, #851)

  • Add exports for several types:
    • TextInputValue from TextInput
    • PaddingProps, MarginProps, SpacingProps and SpacingWithoutInsetProp
  • Minor dependency updates