Allow setting of highlight focus day

Related to #2000, but that was closed without any resolution.

Bug description:

When the datepicker popup is launched, the first day of the month is highlighted, whereas convention seems to indicate that the current day should be highlighted

Expected behavior:

The .btn-light class should be applied to the current date by default, or there should be options added to the API such as [highlightDay]="first|current".

Link to minimally-working plunker that reproduces the issue:

Version of Angular, ng-bootstrap, and Bootstrap:

ng-bootstrap: v. 1.0.0.-beta-9

1 possible answer(s) on “Allow setting of highlight focus day

  1. Yes, the keyboard navigation focus. If no date has been picked and the popup is opened, the only thing highlighted is the first day of the month. I was just mentioning that in any other datepicker I’ve seen, if anything is highlighted, it’s the current day, so that if that’s what the user wants, it’s easy to pick.
    See the datepickers from jQuery, Angular Material, and Angular datepicker

    And if a day has been selected, it seems weird to me when the picker opens, both the selected day and the first day of the month are highlighted (albeit with different colors, but one shade of blue doesn’t automatically mean something different than another shade of blue). I’ve seen datepickers where today’s date is always highlighted, but none others where the first of the month is.

    Maybe it’s just me, but I would prefer there to be no highlight whatsoever if the current value is null, at least until the user hits an arrow key, unless the highlight is the current day.

    So maybe if there could be a new option for “keyboardFocusHighlight”?