Skip to content

Commit

Permalink
h3 typography on small screens, h2 on medium-large screens (#10939)
Browse files Browse the repository at this point in the history
  • Loading branch information
rr-bw authored Sep 9, 2024
1 parent 4e7399e commit 12967b0
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions libs/auth/src/angular/anon-layout/anon-layout.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,16 @@
<bit-icon [icon]="icon"></bit-icon>
</div>

<h1 *ngIf="title" bitTypography="h3" class="tw-mt-2 sm:tw-text-2xl">
{{ title }}
</h1>
<ng-container *ngIf="title">
<!-- Small screens -->
<h1 bitTypography="h3" class="tw-mt-2 sm:tw-hidden">
{{ title }}
</h1>
<!-- Medium to Larger screens -->
<h1 bitTypography="h2" class="tw-mt-2 tw-hidden sm:tw-block">
{{ title }}
</h1>
</ng-container>
<div *ngIf="subtitle" class="tw-text-sm sm:tw-text-base">{{ subtitle }}</div>
</div>

Expand Down

0 comments on commit 12967b0

Please sign in to comment.