angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.37k stars 6.74k forks source link

bug(mat-datepicker): Custom font not applied to mat-datepicker #26446

Closed DzmVasileusky closed 1 year ago

DzmVasileusky commented 1 year ago

Is this a regression?

The previous version in which this bug was not present was

14

Description

Custom font-family isn't applied to mat-datepicker

Reproduction

Steps to reproduce:

  1. Add the following code
    $my-typography: mat.define-typography-config(
    $font-family: 'proxima-nova', system, -apple-system, BlinkMacSystemFont, Helvetica Neue, sans-serif
    );
    $my-theme: mat.define-light-theme((
    typography: $my-typography
    ));
    @include mat.core();
    @include mat.all-component-themes($my-theme);
  2. Add mat-datepicker on any page

Expected Behavior

mat-datepicker elements have font-family: 'proxima-nova', system, -apple-system, BlinkMacSystemFont, Helvetica Neue, sans-serif

Actual Behavior

mat-datepicker elements have font-family: Roboto, "Helvetica Neue", sans-serif;

Environment

angular-automatic-lock-bot[bot] commented 1 year ago

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.