You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Used to show an icon. Any [icon](/icons/library) name is accepted. [See guidance on which icon to use depending on the product](/components/app-header#home-link).
Indicates if the Home Link will only contain a icon/logo. If set to `false`, the `@text` property will be rendered adjacent to the logo.
58
+
</C.Property>
53
59
<C.Property @name="color" @type="string">
54
60
Used to specify an optional custom color provided as any valid CSS color. For more details on acceptable values, see the [Icon color argument](/components/icon?tab=code#fill). If unspecified, it will use the App Headers’s default white text color.
55
61
</C.Property>
@@ -65,9 +71,6 @@ The `AppHeader::HomeLink` component uses the generic `Hds::Interactive` componen
Copy file name to clipboardExpand all lines: website/docs/components/app-header/partials/code/how-to-use.md
+25-5Lines changed: 25 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ When adding Dropdown components within the App Header, be sure to set `enableCol
53
53
54
54
The `Hds::AppHeader::HomeLink` child component should be yielded within the `<:logo>` block. It provides consistent branding and navigates the user to the “home” or main dashboard page.
55
55
56
-
It requires a value for the `@icon` and `@ariaLabel` arguments.
56
+
It requires a value for the `@icon` and `@text` arguments.
57
57
58
58
It is built on top of the [`Hds::Interactive` component](/utilities/interactive), so it accepts all its routing arguments (eg. `@href`, `@route`, `@query`, `@model(s)`, etc.).
59
59
@@ -68,7 +68,7 @@ probably need to be set to `true` (or omitted to rely on defaults)
68
68
<:logo>
69
69
<Hds::AppHeader::HomeLink
70
70
@icon="hashicorp"
71
-
@ariaLabel="HashiCorp home menu"
71
+
@text="HashiCorp home menu"
72
72
@href="/"
73
73
/>
74
74
</:logo>
@@ -84,6 +84,26 @@ probably need to be set to `true` (or omitted to rely on defaults)
84
84
</Hds::AppHeader>
85
85
```
86
86
87
+
When `@isIconOnly` is set to `false`, the `@text` argument displays text inline with the logo and can be used to more deliberately title an application or provide other differentiating text.
Copy file name to clipboardExpand all lines: website/docs/components/app-header/partials/guidelines/guidelines.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,12 @@ For cloud products, the icon should always be `hcp`. For standalone or open-sour
31
31
32
32

33
33
34
+
#### Text
35
+
36
+
The home link supports an optional `text` property to more explicitly title an application. We recommend using this property sparingly as it's often unnecessary to title a HashiCorp application in such an explicit manner.
37
+
38
+

0 commit comments