Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Datepicker TitleCasePipe not configurable #226

Closed
daniel-sc opened this issue Nov 25, 2019 · 0 comments · Fixed by #227
Closed

Bug: Datepicker TitleCasePipe not configurable #226

daniel-sc opened this issue Nov 25, 2019 · 0 comments · Fixed by #227
Labels
bug Something isn't working comp: lean Issues related to @sbb-esta/angular lean design comp: standard Issues related to @sbb-esta/angular standard design effort1: hours help wanted Extra attention is needed prio4: low Should be done after all higher priorities are done

Comments

@daniel-sc
Copy link
Contributor

daniel-sc commented Nov 25, 2019

Describe the bug
Currently the DateInput directive (used by the DatePicker) uses the TitleCasePipe to (re-)format the result of the formatted date (from DateAdapter). This makes it impossible to display e.g. the calendar week correctly ('\'KW\' w', provided via SBB_DATE_FORMATS).

See


and
? this._titleCasePipe.transform(this.dateAdapter.format(value, this._dateFormats.dateInput))

Expected behavior
Either completely remove the TitleCasePipe or make it possible to disable this via a new input or by injecting a custom TitleCasePipe.

Screenshots
image

@daniel-sc daniel-sc added the bug Something isn't working label Nov 25, 2019
daniel-sc added a commit to daniel-sc/sbb-angular that referenced this issue Nov 25, 2019
Allow to customize usage of TitleCasePipe in DateInput/DatePicker by injecting it.

closes sbb-design-systems#226
@kyubisation kyubisation added comp: lean Issues related to @sbb-esta/angular lean design comp: standard Issues related to @sbb-esta/angular standard design effort1: hours help wanted Extra attention is needed prio4: low Should be done after all higher priorities are done labels Nov 25, 2019
daniel-sc added a commit to daniel-sc/sbb-angular that referenced this issue Nov 25, 2019
Allow to customize usage of TitleCasePipe in DateInput/DatePicker by injecting custom DateAdapter.

closes sbb-design-systems#226
kyubisation pushed a commit that referenced this issue Nov 25, 2019
Allow to customize usage of TitleCasePipe in DateInput/DatePicker by injecting custom DateAdapter.

closes #226
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working comp: lean Issues related to @sbb-esta/angular lean design comp: standard Issues related to @sbb-esta/angular standard design effort1: hours help wanted Extra attention is needed prio4: low Should be done after all higher priorities are done
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants