Skip to content

v5.8

Features

DatePicker

  • added min_date and max_date props, with a event return of is_valid_start_date and is_valid_end_date
  • got a new prop show_reset_button to show a Reset button inside the DatePicker footer / toolbar.

Input

  • added keep_placeholder property to the component which will keep the placeholder visible as long as there is not entered a value. In some circumstances, this is a better solution. E.g. in combination with the InputMasked and a e-mail mask.

Number

  • added currency_display property to include shared Provider support.
  • enhanced NVDA support.

Modal

  • have dnb-core-style class set by default to the Modal content - prevent this by using the prevent_core_style prop.

Anchor / Text link

  • target="_blank" with href="http*" will get an icon added, showing that the link is a "link out" of the current context. You can prevent the link to appear by using an HTML class: dnb-anchor--no-icon.

Lists

  • Enhanced support on nested lists, especially on ordered lists (with numbers).

Icon

  • added border property to to show a rounded border on icons.

New Icons

// new primary icons
import {
reset,
arrow_top,
arrow_right,
arrow_bottom,
arrow_left,
} from 'dnb-ui-lib/icons/primary'
// new secondary icons
import {
home,
settings,
refresh,
add_file,
view_on,
view_off,
} from 'dnb-ui-lib/icons/secondary'

Install

To upgrade to v5.8 with NPM, use:

$ npm i dnb-ui-lib@5

November, 30. 2019