| 1 |
--- |
| 2 |
id: 'Hint' |
| 3 |
section: components |
| 4 |
cssPrefix: pf-v6-c-hint |
| 5 |
---## Examples |
| 6 |
|
| 7 |
### Hint with title |
| 8 |
|
| 9 |
```html |
| 10 |
<div class="pf-v6-c-hint"> |
| 11 |
<div class="pf-v6-c-hint__actions"> |
| 12 |
<button |
| 13 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 14 |
type="button" |
| 15 |
aria-expanded="false" |
| 16 |
aria-label="Hint with title example actions" |
| 17 |
id="hint-with-title-example-hint" |
| 18 |
> |
| 19 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 20 |
<svg |
| 21 |
class="pf-v6-svg" |
| 22 |
fill="currentColor" |
| 23 |
viewBox="0 0 32 32" |
| 24 |
aria-hidden="true" |
| 25 |
role="img" |
| 26 |
width="1em" |
| 27 |
height="1em" |
| 28 |
> |
| 29 |
<path |
| 30 |
d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z" |
| 31 |
/> |
| 32 |
</svg> |
| 33 |
</span> |
| 34 |
</button> |
| 35 |
</div> |
| 36 |
<div class="pf-v6-c-hint__title">Do more with Find it Fix it capabilities</div> |
| 37 |
<div |
| 38 |
class="pf-v6-c-hint__body" |
| 39 |
>Upgrade to Red Hat Smart Management to remediate all your systems across regions and geographies.</div> |
| 40 |
</div> |
| 41 |
|
| 42 |
<br /> |
| 43 |
|
| 44 |
<div class="pf-v6-c-hint"> |
| 45 |
<div class="pf-v6-c-hint__actions"> |
| 46 |
<button |
| 47 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 48 |
type="button" |
| 49 |
aria-expanded="false" |
| 50 |
aria-label="Hint with title and footer example actions" |
| 51 |
id="hint-with-title-and-actions-example-hint" |
| 52 |
> |
| 53 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 54 |
<svg |
| 55 |
class="pf-v6-svg" |
| 56 |
fill="currentColor" |
| 57 |
viewBox="0 0 32 32" |
| 58 |
aria-hidden="true" |
| 59 |
role="img" |
| 60 |
width="1em" |
| 61 |
height="1em" |
| 62 |
> |
| 63 |
<path |
| 64 |
d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z" |
| 65 |
/> |
| 66 |
</svg> |
| 67 |
</span> |
| 68 |
</button> |
| 69 |
</div> |
| 70 |
<div class="pf-v6-c-hint__title">Do more with Find it Fix it capabilities</div> |
| 71 |
<div |
| 72 |
class="pf-v6-c-hint__body" |
| 73 |
>Upgrade to Red Hat Smart Management to remediate all your systems across regions and geographies.</div> |
| 74 |
<div class="pf-v6-c-hint__footer"> |
| 75 |
<button class="pf-v6-c-button pf-m-inline pf-m-link" type="button"> |
| 76 |
<span class="pf-v6-c-button__text">Try it for 90 days</span> |
| 77 |
</button> |
| 78 |
</div> |
| 79 |
</div> |
| 80 |
|
| 81 |
``` |
| 82 |
|
| 83 |
### Default with no title |
| 84 |
|
| 85 |
```html |
| 86 |
<div class="pf-v6-c-hint"> |
| 87 |
<div class="pf-v6-c-hint__body"> |
| 88 |
Welcome to the new documentation experience. |
| 89 |
<a href="#">Learn more about the improved features</a>. |
| 90 |
</div> |
| 91 |
</div> |
| 92 |
|
| 93 |
<br /> |
| 94 |
|
| 95 |
<div class="pf-v6-c-hint"> |
| 96 |
<div class="pf-v6-c-hint__actions"> |
| 97 |
<button |
| 98 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 99 |
type="button" |
| 100 |
aria-expanded="false" |
| 101 |
aria-label="Hint without title example actions" |
| 102 |
id="hint-with-no-title-example-hint" |
| 103 |
> |
| 104 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 105 |
<svg |
| 106 |
class="pf-v6-svg" |
| 107 |
fill="currentColor" |
| 108 |
viewBox="0 0 32 32" |
| 109 |
aria-hidden="true" |
| 110 |
role="img" |
| 111 |
width="1em" |
| 112 |
height="1em" |
| 113 |
> |
| 114 |
<path |
| 115 |
d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z" |
| 116 |
/> |
| 117 |
</svg> |
| 118 |
</span> |
| 119 |
</button> |
| 120 |
</div> |
| 121 |
<div |
| 122 |
class="pf-v6-c-hint__body" |
| 123 |
>Upgrade to Red Hat Smart Management to remediate all your systems across regions and geographies.</div> |
| 124 |
<div class="pf-v6-c-hint__footer"> |
| 125 |
<button class="pf-v6-c-button pf-m-inline pf-m-link" type="button"> |
| 126 |
<span class="pf-v6-c-button__text">Try it for 90 days</span> |
| 127 |
</button> |
| 128 |
</div> |
| 129 |
</div> |
| 130 |
|
| 131 |
``` |
| 132 |
|
| 133 |
### Actions with no offset |
| 134 |
|
| 135 |
```html |
| 136 |
<div class="pf-v6-c-hint"> |
| 137 |
<div class="pf-v6-c-hint__actions pf-m-no-offset"> |
| 138 |
<button class="pf-v6-c-button pf-m-primary" type="button"> |
| 139 |
<span class="pf-v6-c-button__text">Action</span> |
| 140 |
</button> |
| 141 |
</div> |
| 142 |
<div class="pf-v6-c-hint__title">Do more with Find it Fix it capabilities</div> |
| 143 |
<div |
| 144 |
class="pf-v6-c-hint__body" |
| 145 |
>Upgrade to Red Hat Smart Management to remediate all your systems across regions and geographies.</div> |
| 146 |
</div> |
| 147 |
|
| 148 |
``` |
| 149 |
|
| 150 |
## Documentation |
| 151 |
|
| 152 |
### Usage |
| 153 |
|
| 154 |
| Class | Applied to | Outcome | |
| 155 |
| -- | -- | -- | |
| 156 |
| `.pf-v6-c-hint` | `<div>` | Initiates the hint component. **Required** | |
| 157 |
| `.pf-v6-c-hint__title` | `<div>` | Initiates the hint title element. | |
| 158 |
| `.pf-v6-c-hint__body` | `<div>` | Initiates the hint body element. | |
| 159 |
| `.pf-v6-c-hint__footer` | `<div>` | Initiates the hint footer element. | |
| 160 |
| `.pf-v6-c-hint__actions` | `<div>` | Initiates the hint actions element. | |
| 161 |
| `.pf-m-no-offset` | `.pf-v6-c-hint__actions` | Removes the negative vertical margins on the actions element intended to align the action content with the hint title. | |