Skip to content

Commit

Permalink
feat(navigation-logo): Increase font-size of heading with no descript…
Browse files Browse the repository at this point in the history
…ion (#7081)

**Related Issue:** #7080 

## Summary
Bumps up the font size from `text-0` to `text-1` when the heading is
provided with no description. This preserves space when both are present
and makes the logo heading more prominent.

cc @juliepowell @ashetland @SkyeSeitz - should be a few small changes in
Chromatic.
  • Loading branch information
macandcheese authored Jun 28, 2023
1 parent 942d698 commit 355e101
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@
font-medium;
}

.standalone {
@apply text-1;
}

.description {
@apply text-color-2 truncate;
font-size: var(--calcite-font-size--1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,14 @@ export class CalciteNavigationLogo implements LoadableComponent {
{(heading || description) && (
<div class={CSS.container}>
{heading && (
<span aria-label={this.heading} class={CSS.heading} key={CSS.heading}>
<span
aria-label={this.heading}
class={{
[CSS.heading]: true,
[CSS.standalone]: !this.description
}}
key={CSS.heading}
>
{heading}
</span>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ export const CSS = {
heading: "heading",
description: "description",
anchor: "anchor",
image: "image"
image: "image",
standalone: "standalone"
};

0 comments on commit 355e101

Please sign in to comment.