Skip to content

Commit

Permalink
feat(TitleBlockZen): update title font to match composable header (#64)
Browse files Browse the repository at this point in the history
* chore: apply vscode settings auto update

* feat(TitleBlockZen): update title font to match composable header

* feat(TitleBlockZen): remove breadcrumb breakpoint title font scaling
  • Loading branch information
HeartSquared authored Jun 21, 2024
1 parent 51cfa9c commit 013bd5b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .changeset/fresh-parents-cough.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@kaizen/draft-title-block-zen": minor
---

Update TitleBlockZen title font to match composable header.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Happy linting! 💖
*/
{
"editor.codeActionsOnSave": {
"source.fixAll": true
"source.fixAll": "explicit"
},
"editor.formatOnSave": true,
"javascript.suggestionActions.enabled": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,19 +168,12 @@ $tab-container-height-medium-and-small-collapsed: 0;
}

.titleTextOverride.titleTextOverride {
// Match the composable header styles
font-family: $typography-display-0-font-family;
font-weight: 500;
padding: 4px 0;

@media (max-width: $breadcrumb-breakpoint-width) {
font-family: $typography-heading-2-font-family;
font-weight: $typography-heading-2-font-weight;
font-size: $typography-heading-2-font-size;
line-height: $typography-heading-2-line-height;
letter-spacing: $typography-heading-2-letter-spacing;
}

@include title-block-under-1366 {
font-family: $typography-heading-2-font-family;
font-weight: $typography-heading-2-font-weight;
font-size: $typography-heading-2-font-size;
line-height: $typography-heading-2-line-height;
letter-spacing: $typography-heading-2-letter-spacing;
Expand All @@ -189,8 +182,6 @@ $tab-container-height-medium-and-small-collapsed: 0;

.hasLongTitle & {
@include title-block-under-1366 {
font-family: $typography-heading-3-font-family;
font-weight: $typography-heading-3-font-weight;
font-size: $typography-heading-3-font-size;
line-height: $typography-heading-3-line-height;
letter-spacing: $typography-heading-3-letter-spacing;
Expand All @@ -201,8 +192,6 @@ $tab-container-height-medium-and-small-collapsed: 0;
&,
.hasLongTitle & {
@include title-block-medium-and-small {
font-family: $typography-heading-4-font-family;
font-weight: $typography-heading-4-font-weight;
font-size: $typography-heading-4-font-size;
line-height: $typography-heading-4-line-height;
letter-spacing: $typography-heading-4-letter-spacing;
Expand Down

0 comments on commit 013bd5b

Please sign in to comment.