2.0.0 (2018-05-04)
This is a major release of ng-bootstrap. It is fully compatible with Angular / RxJS 6.x.
Please pay attention to the breaking changes section when upgrading.
Bug Fixes
- accordion: add 'accordion' css class (d014d0e), closes #2304
- accordion: remove active class from open panel titles (f804649), closes #2307 #2221
- datepicker: allow weekday and week number css to be overridden (57bf8f8), closes #2296
- dropdown: correct dropup position with Bootstrap 4.1 (91c166d), closes #2297 #2313
- modal: don't use deprecated 'ReflectiveInjector' (0f8055f), closes #2285
- typeahead: reset active index when results change (46a4b3b), closes #2303 #2312
Features
BREAKING CHANGES
- datepicker: if you're using a custom
NgbDatepickerI18n
implementation, you'll have to implement an additional method: getDayAriaLabel(date: NgbDateStruct): string
. It returns the string that will be set for the aria-label
attribute for each displayed day. If you're not using the custom service, the aria-label
will default to the value returned by the angular DatePipe
with 'fullDate'
format. - accordion: The "active" CSS class is no longer added to headers of an active panel.
This change assures that markup used by ng-bootstrap is in-line with the
markup described in:
https://getbootstrap.com/docs/4.0/components/collapse/#accordion-example
- popover: Popovers with an empty title and content are considered disabled and won't open by default.
- datepicker: The datepicker is no longer focusable as a whole component. Instead, the focus is allowed on each element inside the datepicker (navigation buttons, select boxes, focusable day) in the natural order. The datepicker
.focus()
method will now only focus one day and not the whole component. - datepicker: if your application provides a LOCALE_ID other than
the default en-US, registers the locale data for this locale, and
doesn't use a custom NgbDatepickerI18n, then the days and months
of the datepicker won't be displayed in English anymore, but in the
language of the provided locale.
<a name="1.1.1"></a>