| 1 |
--- |
| 2 |
id: Notification drawer |
| 3 |
section: components |
| 4 |
cssPrefix: pf-v6-c-notification-drawer |
| 5 |
---## Examples |
| 6 |
|
| 7 |
### Basic |
| 8 |
|
| 9 |
```html |
| 10 |
<div class="pf-v6-c-notification-drawer"> |
| 11 |
<div class="pf-v6-c-notification-drawer__header"> |
| 12 |
<h1 class="pf-v6-c-notification-drawer__header-title">Notifications</h1> |
| 13 |
<span class="pf-v6-c-notification-drawer__header-status">3 unread</span> |
| 14 |
<div class="pf-v6-c-notification-drawer__header-action"> |
| 15 |
<button |
| 16 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 17 |
type="button" |
| 18 |
aria-expanded="false" |
| 19 |
aria-label="Menu toggle" |
| 20 |
id="notification-drawer-basic-example-menu-toggle" |
| 21 |
> |
| 22 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 23 |
<svg |
| 24 |
class="pf-v6-svg" |
| 25 |
fill="currentColor" |
| 26 |
viewBox="0 0 32 32" |
| 27 |
aria-hidden="true" |
| 28 |
role="img" |
| 29 |
width="1em" |
| 30 |
height="1em" |
| 31 |
> |
| 32 |
<path |
| 33 |
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" |
| 34 |
/> |
| 35 |
</svg> |
| 36 |
</span> |
| 37 |
</button> |
| 38 |
<div class="pf-v6-c-notification-drawer__header-action-close"> |
| 39 |
<button |
| 40 |
class="pf-v6-c-button pf-m-plain" |
| 41 |
type="button" |
| 42 |
aria-label="Close" |
| 43 |
> |
| 44 |
<span class="pf-v6-c-button__icon"> |
| 45 |
<svg |
| 46 |
class="pf-v6-svg" |
| 47 |
fill="currentColor" |
| 48 |
viewBox="0 0 20 20" |
| 49 |
aria-hidden="true" |
| 50 |
role="img" |
| 51 |
width="1em" |
| 52 |
height="1em" |
| 53 |
> |
| 54 |
<path |
| 55 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 56 |
/> |
| 57 |
</svg> |
| 58 |
</span> |
| 59 |
</button> |
| 60 |
</div> |
| 61 |
</div> |
| 62 |
</div> |
| 63 |
<div class="pf-v6-c-notification-drawer__body"> |
| 64 |
<ul class="pf-v6-c-notification-drawer__list" role="list"> |
| 65 |
<li |
| 66 |
class="pf-v6-c-notification-drawer__list-item pf-m-hoverable pf-m-info" |
| 67 |
tabindex="0" |
| 68 |
> |
| 69 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 70 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 71 |
<svg |
| 72 |
class="pf-v6-svg" |
| 73 |
fill="currentColor" |
| 74 |
viewBox="0 0 32 32" |
| 75 |
aria-hidden="true" |
| 76 |
role="img" |
| 77 |
width="1em" |
| 78 |
height="1em" |
| 79 |
> |
| 80 |
<path |
| 81 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm1.5 22a1.5 1.5 0 1 1-3 0v-5.157l-.188.04a1.5 1.5 0 0 1-.625-2.934l1.956-.416c.112-.024.223-.032.333-.03l.024-.002a1.5 1.5 0 0 1 1.5 1.5v7Zm-.08-12.58c-.38.37-.89.58-1.42.58a1.998 1.998 0 0 1-1.851-2.76c.051-.13.11-.24.19-.35.07-.11.15-.21.25-.3.74-.75 2.08-.75 2.83 0 .09.09.17.19.24.3.08.11.14.22.189.35.05.12.09.24.11.37.03.13.04.26.04.39 0 .53-.21 1.04-.58 1.42Z" |
| 82 |
/> |
| 83 |
</svg> |
| 84 |
</span> |
| 85 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 86 |
<span class="pf-v6-screen-reader">Info notification:</span> |
| 87 |
Unread |
| 88 |
info notification title |
| 89 |
</h2> |
| 90 |
</div> |
| 91 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 92 |
<button |
| 93 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 94 |
type="button" |
| 95 |
aria-expanded="false" |
| 96 |
aria-label="Menu toggle" |
| 97 |
id="notification-drawer-basic-example-menu-toggle-1" |
| 98 |
> |
| 99 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 100 |
<svg |
| 101 |
class="pf-v6-svg" |
| 102 |
fill="currentColor" |
| 103 |
viewBox="0 0 32 32" |
| 104 |
aria-hidden="true" |
| 105 |
role="img" |
| 106 |
width="1em" |
| 107 |
height="1em" |
| 108 |
> |
| 109 |
<path |
| 110 |
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" |
| 111 |
/> |
| 112 |
</svg> |
| 113 |
</span> |
| 114 |
</button> |
| 115 |
</div> |
| 116 |
<div |
| 117 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 118 |
>This is an info notification description.</div> |
| 119 |
<div |
| 120 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 121 |
>5 minutes ago</div> |
| 122 |
</li> |
| 123 |
|
| 124 |
<li |
| 125 |
class="pf-v6-c-notification-drawer__list-item pf-m-hoverable pf-m-custom" |
| 126 |
tabindex="0" |
| 127 |
> |
| 128 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 129 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 130 |
<svg |
| 131 |
class="pf-v6-svg" |
| 132 |
fill="currentColor" |
| 133 |
viewBox="0 0 32 32" |
| 134 |
aria-hidden="true" |
| 135 |
role="img" |
| 136 |
width="1em" |
| 137 |
height="1em" |
| 138 |
> |
| 139 |
<path |
| 140 |
d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z" |
| 141 |
/> |
| 142 |
</svg> |
| 143 |
</span> |
| 144 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 145 |
<span class="pf-v6-screen-reader">Custom notification:</span> |
| 146 |
Unread |
| 147 |
recommendation notification title. This is a long title to show how the title will wrap if it is long and wraps to multiple lines. |
| 148 |
</h2> |
| 149 |
</div> |
| 150 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 151 |
<button |
| 152 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 153 |
type="button" |
| 154 |
aria-expanded="false" |
| 155 |
aria-label="Menu toggle" |
| 156 |
id="notification-drawer-basic-example-menu-toggle-3" |
| 157 |
> |
| 158 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 159 |
<svg |
| 160 |
class="pf-v6-svg" |
| 161 |
fill="currentColor" |
| 162 |
viewBox="0 0 32 32" |
| 163 |
aria-hidden="true" |
| 164 |
role="img" |
| 165 |
width="1em" |
| 166 |
height="1em" |
| 167 |
> |
| 168 |
<path |
| 169 |
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" |
| 170 |
/> |
| 171 |
</svg> |
| 172 |
</span> |
| 173 |
</button> |
| 174 |
</div> |
| 175 |
<div |
| 176 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 177 |
>This is a recommendation notification description. This is a long description to show how the title will wrap if it is long and wraps to multiple lines.</div> |
| 178 |
<div |
| 179 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 180 |
>10 minutes ago</div> |
| 181 |
</li> |
| 182 |
|
| 183 |
<li |
| 184 |
class="pf-v6-c-notification-drawer__list-item pf-m-hoverable pf-m-custom" |
| 185 |
tabindex="0" |
| 186 |
> |
| 187 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 188 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 189 |
<svg |
| 190 |
class="pf-v6-svg" |
| 191 |
fill="currentColor" |
| 192 |
viewBox="0 0 32 32" |
| 193 |
aria-hidden="true" |
| 194 |
role="img" |
| 195 |
width="1em" |
| 196 |
height="1em" |
| 197 |
> |
| 198 |
<path |
| 199 |
d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z" |
| 200 |
/> |
| 201 |
</svg> |
| 202 |
</span> |
| 203 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 204 |
<span class="pf-v6-screen-reader">Custom notification:</span> |
| 205 |
Unread |
| 206 |
recommendation notification title. This is a long title to show how the title will wrap if it is long and wraps to multiple lines. |
| 207 |
</h2> |
| 208 |
</div> |
| 209 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 210 |
<button |
| 211 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 212 |
type="button" |
| 213 |
aria-expanded="false" |
| 214 |
aria-label="Menu toggle" |
| 215 |
id="notification-drawer-basic-example-menu-toggle-4" |
| 216 |
> |
| 217 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 218 |
<svg |
| 219 |
class="pf-v6-svg" |
| 220 |
fill="currentColor" |
| 221 |
viewBox="0 0 32 32" |
| 222 |
aria-hidden="true" |
| 223 |
role="img" |
| 224 |
width="1em" |
| 225 |
height="1em" |
| 226 |
> |
| 227 |
<path |
| 228 |
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" |
| 229 |
/> |
| 230 |
</svg> |
| 231 |
</span> |
| 232 |
</button> |
| 233 |
</div> |
| 234 |
<div |
| 235 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 236 |
>This is a recommendation notification description. This is a long description to show how the title will wrap if it is long and wraps to multiple lines.</div> |
| 237 |
<div |
| 238 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 239 |
>20 minutes ago</div> |
| 240 |
</li> |
| 241 |
<li |
| 242 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-warning pf-m-hoverable" |
| 243 |
> |
| 244 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 245 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 246 |
<svg |
| 247 |
class="pf-v6-svg" |
| 248 |
fill="currentColor" |
| 249 |
viewBox="0 0 32 32" |
| 250 |
aria-hidden="true" |
| 251 |
role="img" |
| 252 |
width="1em" |
| 253 |
height="1em" |
| 254 |
> |
| 255 |
<path |
| 256 |
d="m31.874 28.514-15.011-27a1.001 1.001 0 0 0-1.748 0l-15.011 27A1 1 0 0 0 .978 30H31a1 1 0 0 0 .874-1.486ZM14.5 12a1.5 1.5 0 0 1 3 0v5a1.5 1.5 0 0 1-3 0v-5ZM16 26.001a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 26.001Z" |
| 257 |
/> |
| 258 |
</svg> |
| 259 |
</span> |
| 260 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 261 |
<span class="pf-v6-screen-reader">Warning notification:</span> |
| 262 |
Read warning notification title |
| 263 |
</h2> |
| 264 |
</div> |
| 265 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 266 |
<button |
| 267 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 268 |
type="button" |
| 269 |
aria-expanded="false" |
| 270 |
aria-label="Menu toggle" |
| 271 |
id="notification-drawer-basic-example-menu-toggle-5" |
| 272 |
> |
| 273 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 274 |
<svg |
| 275 |
class="pf-v6-svg" |
| 276 |
fill="currentColor" |
| 277 |
viewBox="0 0 32 32" |
| 278 |
aria-hidden="true" |
| 279 |
role="img" |
| 280 |
width="1em" |
| 281 |
height="1em" |
| 282 |
> |
| 283 |
<path |
| 284 |
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" |
| 285 |
/> |
| 286 |
</svg> |
| 287 |
</span> |
| 288 |
</button> |
| 289 |
</div> |
| 290 |
<div |
| 291 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 292 |
>This is a warning notification description.</div> |
| 293 |
<div |
| 294 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 295 |
>20 minutes ago</div> |
| 296 |
</li> |
| 297 |
<li |
| 298 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-success pf-m-hoverable" |
| 299 |
> |
| 300 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 301 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 302 |
<svg |
| 303 |
class="pf-v6-svg" |
| 304 |
fill="currentColor" |
| 305 |
viewBox="0 0 32 32" |
| 306 |
aria-hidden="true" |
| 307 |
role="img" |
| 308 |
width="1em" |
| 309 |
height="1em" |
| 310 |
> |
| 311 |
<path |
| 312 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z" |
| 313 |
/> |
| 314 |
</svg> |
| 315 |
</span> |
| 316 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 317 |
<span class="pf-v6-screen-reader">Success notification:</span> |
| 318 |
Read success notification title |
| 319 |
</h2> |
| 320 |
</div> |
| 321 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 322 |
<button |
| 323 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 324 |
type="button" |
| 325 |
aria-expanded="false" |
| 326 |
aria-label="Menu toggle" |
| 327 |
id="notification-drawer-basic-example-menu-toggle-6" |
| 328 |
> |
| 329 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 330 |
<svg |
| 331 |
class="pf-v6-svg" |
| 332 |
fill="currentColor" |
| 333 |
viewBox="0 0 32 32" |
| 334 |
aria-hidden="true" |
| 335 |
role="img" |
| 336 |
width="1em" |
| 337 |
height="1em" |
| 338 |
> |
| 339 |
<path |
| 340 |
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" |
| 341 |
/> |
| 342 |
</svg> |
| 343 |
</span> |
| 344 |
</button> |
| 345 |
</div> |
| 346 |
<div |
| 347 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 348 |
>This is a success notification description.</div> |
| 349 |
<div |
| 350 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 351 |
>30 minutes ago</div> |
| 352 |
</li> |
| 353 |
<li |
| 354 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-success pf-m-hoverable" |
| 355 |
> |
| 356 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 357 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 358 |
<svg |
| 359 |
class="pf-v6-svg" |
| 360 |
fill="currentColor" |
| 361 |
viewBox="0 0 32 32" |
| 362 |
aria-hidden="true" |
| 363 |
role="img" |
| 364 |
width="1em" |
| 365 |
height="1em" |
| 366 |
> |
| 367 |
<path |
| 368 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z" |
| 369 |
/> |
| 370 |
</svg> |
| 371 |
</span> |
| 372 |
<h2 |
| 373 |
class="pf-v6-c-notification-drawer__list-item-header-title pf-m-truncate" |
| 374 |
> |
| 375 |
<span class="pf-v6-screen-reader">Success notification:</span> |
| 376 |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis odio risus. Ut dictum vitae sapien at posuere. Nullam suscipit massa quis lacus pellentesque scelerisque. Donec non maximus neque, quis ornare nunc. Vivamus in nibh sed libero feugiat feugiat. Nulla lacinia rutrum est, a commodo odio vestibulum suscipit. Nullam id quam et quam porttitor interdum quis nec tellus. Vestibulum arcu dui, pulvinar eu tellus in, semper mattis diam. Sed commodo tincidunt lacus non pulvinar. Curabitur tempor molestie vestibulum. Vivamus vel mi dignissim, efficitur neque eget, efficitur massa. Mauris vitae nunc augue. Donec augue lorem, malesuada et quam vitae, volutpat mattis nisi. Nullam nec venenatis ex, quis lobortis purus. Sed nisl dolor, mattis sit amet tincidunt quis, mollis sed massa. |
| 377 |
</h2> |
| 378 |
</div> |
| 379 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 380 |
<button |
| 381 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 382 |
type="button" |
| 383 |
aria-expanded="false" |
| 384 |
aria-label="Menu toggle" |
| 385 |
id="notification-drawer-basic-example-menu-toggle-7" |
| 386 |
> |
| 387 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 388 |
<svg |
| 389 |
class="pf-v6-svg" |
| 390 |
fill="currentColor" |
| 391 |
viewBox="0 0 32 32" |
| 392 |
aria-hidden="true" |
| 393 |
role="img" |
| 394 |
width="1em" |
| 395 |
height="1em" |
| 396 |
> |
| 397 |
<path |
| 398 |
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" |
| 399 |
/> |
| 400 |
</svg> |
| 401 |
</span> |
| 402 |
</button> |
| 403 |
</div> |
| 404 |
<div |
| 405 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 406 |
>This example uses ".pf-m-truncate" to limit the title to a single line and truncate any overflow text with ellipses.</div> |
| 407 |
<div |
| 408 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 409 |
>40 minutes ago</div> |
| 410 |
</li> |
| 411 |
<li |
| 412 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-success pf-m-hoverable" |
| 413 |
> |
| 414 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 415 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 416 |
<svg |
| 417 |
class="pf-v6-svg" |
| 418 |
fill="currentColor" |
| 419 |
viewBox="0 0 32 32" |
| 420 |
aria-hidden="true" |
| 421 |
role="img" |
| 422 |
width="1em" |
| 423 |
height="1em" |
| 424 |
> |
| 425 |
<path |
| 426 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z" |
| 427 |
/> |
| 428 |
</svg> |
| 429 |
</span> |
| 430 |
<h2 |
| 431 |
class="pf-v6-c-notification-drawer__list-item-header-title pf-m-truncate" |
| 432 |
style="--pf-v6-c-notification-drawer__list-item-header-title--max-lines: 2" |
| 433 |
> |
| 434 |
<span class="pf-v6-screen-reader">Success notification:</span> |
| 435 |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis odio risus. Ut dictum vitae sapien at posuere. Nullam suscipit massa quis lacus pellentesque scelerisque. Donec non maximus neque, quis ornare nunc. Vivamus in nibh sed libero feugiat feugiat. Nulla lacinia rutrum est, a commodo odio vestibulum suscipit. Nullam id quam et quam porttitor interdum quis nec tellus. Vestibulum arcu dui, pulvinar eu tellus in, semper mattis diam. Sed commodo tincidunt lacus non pulvinar. Curabitur tempor molestie vestibulum. Vivamus vel mi dignissim, efficitur neque eget, efficitur massa. Mauris vitae nunc augue. Donec augue lorem, malesuada et quam vitae, volutpat mattis nisi. Nullam nec venenatis ex, quis lobortis purus. Sed nisl dolor, mattis sit amet tincidunt quis, mollis sed massa. |
| 436 |
</h2> |
| 437 |
</div> |
| 438 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 439 |
<button |
| 440 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 441 |
type="button" |
| 442 |
aria-expanded="false" |
| 443 |
aria-label="Menu toggle" |
| 444 |
id="notification-drawer-basic-example-menu-toggle-8" |
| 445 |
> |
| 446 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 447 |
<svg |
| 448 |
class="pf-v6-svg" |
| 449 |
fill="currentColor" |
| 450 |
viewBox="0 0 32 32" |
| 451 |
aria-hidden="true" |
| 452 |
role="img" |
| 453 |
width="1em" |
| 454 |
height="1em" |
| 455 |
> |
| 456 |
<path |
| 457 |
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" |
| 458 |
/> |
| 459 |
</svg> |
| 460 |
</span> |
| 461 |
</button> |
| 462 |
</div> |
| 463 |
<div |
| 464 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 465 |
>This example uses ".pf-m-truncate" and sets "--pf-v6-c-notification-drawer__list-item-header-title--max-lines: 2" to limit title to two lines and truncate any overflow text with ellipses.</div> |
| 466 |
<div |
| 467 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 468 |
>50 minutes ago</div> |
| 469 |
</li> |
| 470 |
<li class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-success"> |
| 471 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 472 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 473 |
<svg |
| 474 |
class="pf-v6-svg" |
| 475 |
fill="currentColor" |
| 476 |
viewBox="0 0 32 32" |
| 477 |
aria-hidden="true" |
| 478 |
role="img" |
| 479 |
width="1em" |
| 480 |
height="1em" |
| 481 |
> |
| 482 |
<path |
| 483 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z" |
| 484 |
/> |
| 485 |
</svg> |
| 486 |
</span> |
| 487 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 488 |
<span class="pf-v6-screen-reader">Success notification:</span> |
| 489 |
Notification drawer item title |
| 490 |
</h2> |
| 491 |
</div> |
| 492 |
<div |
| 493 |
class="pf-v6-c-notification-drawer__list-item-action pf-m-no-offset" |
| 494 |
> |
| 495 |
<button class="pf-v6-c-button pf-m-primary" type="button"> |
| 496 |
<span class="pf-v6-c-button__text">Action</span> |
| 497 |
</button> |
| 498 |
</div> |
| 499 |
<div |
| 500 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 501 |
>This example uses ".pf-m-no-offset" on the action wrapper to disable the default offset for button alignment.</div> |
| 502 |
<div |
| 503 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 504 |
>55 minutes ago</div> |
| 505 |
</li> |
| 506 |
</ul> |
| 507 |
</div> |
| 508 |
</div> |
| 509 |
|
| 510 |
``` |
| 511 |
|
| 512 |
### Groups |
| 513 |
|
| 514 |
```html |
| 515 |
<div class="pf-v6-c-notification-drawer"> |
| 516 |
<div class="pf-v6-c-notification-drawer__header"> |
| 517 |
<h1 class="pf-v6-c-notification-drawer__header-title">Notifications</h1> |
| 518 |
<span class="pf-v6-c-notification-drawer__header-status">9 unread</span> |
| 519 |
<div class="pf-v6-c-notification-drawer__header-action"> |
| 520 |
<button |
| 521 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 522 |
type="button" |
| 523 |
aria-expanded="false" |
| 524 |
aria-label="Menu toggle" |
| 525 |
id="notification-drawer-groups-example-menu-toggle" |
| 526 |
> |
| 527 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 528 |
<svg |
| 529 |
class="pf-v6-svg" |
| 530 |
fill="currentColor" |
| 531 |
viewBox="0 0 32 32" |
| 532 |
aria-hidden="true" |
| 533 |
role="img" |
| 534 |
width="1em" |
| 535 |
height="1em" |
| 536 |
> |
| 537 |
<path |
| 538 |
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" |
| 539 |
/> |
| 540 |
</svg> |
| 541 |
</span> |
| 542 |
</button> |
| 543 |
<div class="pf-v6-c-notification-drawer__header-action-close"> |
| 544 |
<button |
| 545 |
class="pf-v6-c-button pf-m-plain" |
| 546 |
type="button" |
| 547 |
aria-label="Close" |
| 548 |
> |
| 549 |
<span class="pf-v6-c-button__icon"> |
| 550 |
<svg |
| 551 |
class="pf-v6-svg" |
| 552 |
fill="currentColor" |
| 553 |
viewBox="0 0 20 20" |
| 554 |
aria-hidden="true" |
| 555 |
role="img" |
| 556 |
width="1em" |
| 557 |
height="1em" |
| 558 |
> |
| 559 |
<path |
| 560 |
d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z" |
| 561 |
/> |
| 562 |
</svg> |
| 563 |
</span> |
| 564 |
</button> |
| 565 |
</div> |
| 566 |
</div> |
| 567 |
</div> |
| 568 |
<div class="pf-v6-c-notification-drawer__body"> |
| 569 |
<div class="pf-v6-c-notification-drawer__group-list"> |
| 570 |
<section class="pf-v6-c-notification-drawer__group"> |
| 571 |
<h1> |
| 572 |
<button |
| 573 |
class="pf-v6-c-notification-drawer__group-toggle" |
| 574 |
aria-expanded="false" |
| 575 |
> |
| 576 |
<div |
| 577 |
class="pf-v6-c-notification-drawer__group-toggle-title" |
| 578 |
>First notification group</div> |
| 579 |
<div class="pf-v6-c-notification-drawer__group-toggle-count"> |
| 580 |
<span class="pf-v6-c-badge pf-m-unread">2</span> |
| 581 |
</div> |
| 582 |
<span class="pf-v6-c-notification-drawer__group-toggle-icon"> |
| 583 |
<svg |
| 584 |
class="pf-v6-svg" |
| 585 |
fill="currentColor" |
| 586 |
viewBox="0 0 20 20" |
| 587 |
aria-hidden="true" |
| 588 |
role="img" |
| 589 |
width="1em" |
| 590 |
height="1em" |
| 591 |
> |
| 592 |
<path |
| 593 |
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z" |
| 594 |
/> |
| 595 |
</svg> |
| 596 |
</span> |
| 597 |
</button> |
| 598 |
</h1> |
| 599 |
<ul class="pf-v6-c-notification-drawer__list" role="list" hidden> |
| 600 |
<li |
| 601 |
class="pf-v6-c-notification-drawer__list-item pf-m-hoverable pf-m-info" |
| 602 |
tabindex="0" |
| 603 |
> |
| 604 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 605 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 606 |
<svg |
| 607 |
class="pf-v6-svg" |
| 608 |
fill="currentColor" |
| 609 |
viewBox="0 0 32 32" |
| 610 |
aria-hidden="true" |
| 611 |
role="img" |
| 612 |
width="1em" |
| 613 |
height="1em" |
| 614 |
> |
| 615 |
<path |
| 616 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm1.5 22a1.5 1.5 0 1 1-3 0v-5.157l-.188.04a1.5 1.5 0 0 1-.625-2.934l1.956-.416c.112-.024.223-.032.333-.03l.024-.002a1.5 1.5 0 0 1 1.5 1.5v7Zm-.08-12.58c-.38.37-.89.58-1.42.58a1.998 1.998 0 0 1-1.851-2.76c.051-.13.11-.24.19-.35.07-.11.15-.21.25-.3.74-.75 2.08-.75 2.83 0 .09.09.17.19.24.3.08.11.14.22.189.35.05.12.09.24.11.37.03.13.04.26.04.39 0 .53-.21 1.04-.58 1.42Z" |
| 617 |
/> |
| 618 |
</svg> |
| 619 |
</span> |
| 620 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 621 |
<span class="pf-v6-screen-reader">Info notification:</span> |
| 622 |
Unread |
| 623 |
info notification title |
| 624 |
</h2> |
| 625 |
</div> |
| 626 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 627 |
<button |
| 628 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 629 |
type="button" |
| 630 |
aria-expanded="false" |
| 631 |
aria-label="Menu toggle" |
| 632 |
id="notification-drawer-groups-example-group1-menu-toggle-1" |
| 633 |
> |
| 634 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 635 |
<svg |
| 636 |
class="pf-v6-svg" |
| 637 |
fill="currentColor" |
| 638 |
viewBox="0 0 32 32" |
| 639 |
aria-hidden="true" |
| 640 |
role="img" |
| 641 |
width="1em" |
| 642 |
height="1em" |
| 643 |
> |
| 644 |
<path |
| 645 |
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" |
| 646 |
/> |
| 647 |
</svg> |
| 648 |
</span> |
| 649 |
</button> |
| 650 |
</div> |
| 651 |
<div |
| 652 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 653 |
>This is an info notification description.</div> |
| 654 |
<div |
| 655 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 656 |
>5 minutes ago</div> |
| 657 |
</li> |
| 658 |
|
| 659 |
<li |
| 660 |
class="pf-v6-c-notification-drawer__list-item pf-m-hoverable pf-m-custom" |
| 661 |
tabindex="0" |
| 662 |
> |
| 663 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 664 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 665 |
<svg |
| 666 |
class="pf-v6-svg" |
| 667 |
fill="currentColor" |
| 668 |
viewBox="0 0 32 32" |
| 669 |
aria-hidden="true" |
| 670 |
role="img" |
| 671 |
width="1em" |
| 672 |
height="1em" |
| 673 |
> |
| 674 |
<path |
| 675 |
d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z" |
| 676 |
/> |
| 677 |
</svg> |
| 678 |
</span> |
| 679 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 680 |
<span class="pf-v6-screen-reader">Custom notification:</span> |
| 681 |
Unread |
| 682 |
recommendation notification title. This is a long title to show how the title will wrap if it is long and wraps to multiple lines. |
| 683 |
</h2> |
| 684 |
</div> |
| 685 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 686 |
<button |
| 687 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 688 |
type="button" |
| 689 |
aria-expanded="false" |
| 690 |
aria-label="Menu toggle" |
| 691 |
id="notification-drawer-groups-example-group1-menu-toggle-3" |
| 692 |
> |
| 693 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 694 |
<svg |
| 695 |
class="pf-v6-svg" |
| 696 |
fill="currentColor" |
| 697 |
viewBox="0 0 32 32" |
| 698 |
aria-hidden="true" |
| 699 |
role="img" |
| 700 |
width="1em" |
| 701 |
height="1em" |
| 702 |
> |
| 703 |
<path |
| 704 |
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" |
| 705 |
/> |
| 706 |
</svg> |
| 707 |
</span> |
| 708 |
</button> |
| 709 |
</div> |
| 710 |
<div |
| 711 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 712 |
>This is a recommendation notification description. This is a long description to show how the title will wrap if it is long and wraps to multiple lines.</div> |
| 713 |
<div |
| 714 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 715 |
>10 minutes ago</div> |
| 716 |
</li> |
| 717 |
|
| 718 |
<li |
| 719 |
class="pf-v6-c-notification-drawer__list-item pf-m-hoverable pf-m-custom" |
| 720 |
tabindex="0" |
| 721 |
> |
| 722 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 723 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 724 |
<svg |
| 725 |
class="pf-v6-svg" |
| 726 |
fill="currentColor" |
| 727 |
viewBox="0 0 32 32" |
| 728 |
aria-hidden="true" |
| 729 |
role="img" |
| 730 |
width="1em" |
| 731 |
height="1em" |
| 732 |
> |
| 733 |
<path |
| 734 |
d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z" |
| 735 |
/> |
| 736 |
</svg> |
| 737 |
</span> |
| 738 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 739 |
<span class="pf-v6-screen-reader">Custom notification:</span> |
| 740 |
Unread |
| 741 |
recommendation notification title. This is a long title to show how the title will wrap if it is long and wraps to multiple lines. |
| 742 |
</h2> |
| 743 |
</div> |
| 744 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 745 |
<button |
| 746 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 747 |
type="button" |
| 748 |
aria-expanded="false" |
| 749 |
aria-label="Menu toggle" |
| 750 |
id="notification-drawer-groups-example-group1-menu-toggle-4" |
| 751 |
> |
| 752 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 753 |
<svg |
| 754 |
class="pf-v6-svg" |
| 755 |
fill="currentColor" |
| 756 |
viewBox="0 0 32 32" |
| 757 |
aria-hidden="true" |
| 758 |
role="img" |
| 759 |
width="1em" |
| 760 |
height="1em" |
| 761 |
> |
| 762 |
<path |
| 763 |
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" |
| 764 |
/> |
| 765 |
</svg> |
| 766 |
</span> |
| 767 |
</button> |
| 768 |
</div> |
| 769 |
<div |
| 770 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 771 |
>This is a recommendation notification description. This is a long description to show how the title will wrap if it is long and wraps to multiple lines.</div> |
| 772 |
<div |
| 773 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 774 |
>20 minutes ago</div> |
| 775 |
</li> |
| 776 |
<li |
| 777 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-warning pf-m-hoverable" |
| 778 |
> |
| 779 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 780 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 781 |
<svg |
| 782 |
class="pf-v6-svg" |
| 783 |
fill="currentColor" |
| 784 |
viewBox="0 0 32 32" |
| 785 |
aria-hidden="true" |
| 786 |
role="img" |
| 787 |
width="1em" |
| 788 |
height="1em" |
| 789 |
> |
| 790 |
<path |
| 791 |
d="m31.874 28.514-15.011-27a1.001 1.001 0 0 0-1.748 0l-15.011 27A1 1 0 0 0 .978 30H31a1 1 0 0 0 .874-1.486ZM14.5 12a1.5 1.5 0 0 1 3 0v5a1.5 1.5 0 0 1-3 0v-5ZM16 26.001a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 26.001Z" |
| 792 |
/> |
| 793 |
</svg> |
| 794 |
</span> |
| 795 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 796 |
<span class="pf-v6-screen-reader">Warning notification:</span> |
| 797 |
Read warning notification title |
| 798 |
</h2> |
| 799 |
</div> |
| 800 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 801 |
<button |
| 802 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 803 |
type="button" |
| 804 |
aria-expanded="false" |
| 805 |
aria-label="Menu toggle" |
| 806 |
id="notification-drawer-groups-example-group1-menu-toggle-5" |
| 807 |
> |
| 808 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 809 |
<svg |
| 810 |
class="pf-v6-svg" |
| 811 |
fill="currentColor" |
| 812 |
viewBox="0 0 32 32" |
| 813 |
aria-hidden="true" |
| 814 |
role="img" |
| 815 |
width="1em" |
| 816 |
height="1em" |
| 817 |
> |
| 818 |
<path |
| 819 |
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" |
| 820 |
/> |
| 821 |
</svg> |
| 822 |
</span> |
| 823 |
</button> |
| 824 |
</div> |
| 825 |
<div |
| 826 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 827 |
>This is a warning notification description.</div> |
| 828 |
<div |
| 829 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 830 |
>20 minutes ago</div> |
| 831 |
</li> |
| 832 |
<li |
| 833 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-success pf-m-hoverable" |
| 834 |
> |
| 835 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 836 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 837 |
<svg |
| 838 |
class="pf-v6-svg" |
| 839 |
fill="currentColor" |
| 840 |
viewBox="0 0 32 32" |
| 841 |
aria-hidden="true" |
| 842 |
role="img" |
| 843 |
width="1em" |
| 844 |
height="1em" |
| 845 |
> |
| 846 |
<path |
| 847 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z" |
| 848 |
/> |
| 849 |
</svg> |
| 850 |
</span> |
| 851 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 852 |
<span class="pf-v6-screen-reader">Success notification:</span> |
| 853 |
Read success notification title |
| 854 |
</h2> |
| 855 |
</div> |
| 856 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 857 |
<button |
| 858 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 859 |
type="button" |
| 860 |
aria-expanded="false" |
| 861 |
aria-label="Menu toggle" |
| 862 |
id="notification-drawer-groups-example-group1-menu-toggle-6" |
| 863 |
> |
| 864 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 865 |
<svg |
| 866 |
class="pf-v6-svg" |
| 867 |
fill="currentColor" |
| 868 |
viewBox="0 0 32 32" |
| 869 |
aria-hidden="true" |
| 870 |
role="img" |
| 871 |
width="1em" |
| 872 |
height="1em" |
| 873 |
> |
| 874 |
<path |
| 875 |
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" |
| 876 |
/> |
| 877 |
</svg> |
| 878 |
</span> |
| 879 |
</button> |
| 880 |
</div> |
| 881 |
<div |
| 882 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 883 |
>This is a success notification description.</div> |
| 884 |
<div |
| 885 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 886 |
>30 minutes ago</div> |
| 887 |
</li> |
| 888 |
<li |
| 889 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-success pf-m-hoverable" |
| 890 |
> |
| 891 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 892 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 893 |
<svg |
| 894 |
class="pf-v6-svg" |
| 895 |
fill="currentColor" |
| 896 |
viewBox="0 0 32 32" |
| 897 |
aria-hidden="true" |
| 898 |
role="img" |
| 899 |
width="1em" |
| 900 |
height="1em" |
| 901 |
> |
| 902 |
<path |
| 903 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z" |
| 904 |
/> |
| 905 |
</svg> |
| 906 |
</span> |
| 907 |
<h2 |
| 908 |
class="pf-v6-c-notification-drawer__list-item-header-title pf-m-truncate" |
| 909 |
> |
| 910 |
<span class="pf-v6-screen-reader">Success notification:</span> |
| 911 |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis odio risus. Ut dictum vitae sapien at posuere. Nullam suscipit massa quis lacus pellentesque scelerisque. Donec non maximus neque, quis ornare nunc. Vivamus in nibh sed libero feugiat feugiat. Nulla lacinia rutrum est, a commodo odio vestibulum suscipit. Nullam id quam et quam porttitor interdum quis nec tellus. Vestibulum arcu dui, pulvinar eu tellus in, semper mattis diam. Sed commodo tincidunt lacus non pulvinar. Curabitur tempor molestie vestibulum. Vivamus vel mi dignissim, efficitur neque eget, efficitur massa. Mauris vitae nunc augue. Donec augue lorem, malesuada et quam vitae, volutpat mattis nisi. Nullam nec venenatis ex, quis lobortis purus. Sed nisl dolor, mattis sit amet tincidunt quis, mollis sed massa. |
| 912 |
</h2> |
| 913 |
</div> |
| 914 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 915 |
<button |
| 916 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 917 |
type="button" |
| 918 |
aria-expanded="false" |
| 919 |
aria-label="Menu toggle" |
| 920 |
id="notification-drawer-groups-example-group1-menu-toggle-7" |
| 921 |
> |
| 922 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 923 |
<svg |
| 924 |
class="pf-v6-svg" |
| 925 |
fill="currentColor" |
| 926 |
viewBox="0 0 32 32" |
| 927 |
aria-hidden="true" |
| 928 |
role="img" |
| 929 |
width="1em" |
| 930 |
height="1em" |
| 931 |
> |
| 932 |
<path |
| 933 |
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" |
| 934 |
/> |
| 935 |
</svg> |
| 936 |
</span> |
| 937 |
</button> |
| 938 |
</div> |
| 939 |
<div |
| 940 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 941 |
>This example uses ".pf-m-truncate" to limit the title to a single line and truncate any overflow text with ellipses.</div> |
| 942 |
<div |
| 943 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 944 |
>40 minutes ago</div> |
| 945 |
</li> |
| 946 |
<li |
| 947 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-success pf-m-hoverable" |
| 948 |
> |
| 949 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 950 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 951 |
<svg |
| 952 |
class="pf-v6-svg" |
| 953 |
fill="currentColor" |
| 954 |
viewBox="0 0 32 32" |
| 955 |
aria-hidden="true" |
| 956 |
role="img" |
| 957 |
width="1em" |
| 958 |
height="1em" |
| 959 |
> |
| 960 |
<path |
| 961 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z" |
| 962 |
/> |
| 963 |
</svg> |
| 964 |
</span> |
| 965 |
<h2 |
| 966 |
class="pf-v6-c-notification-drawer__list-item-header-title pf-m-truncate" |
| 967 |
style="--pf-v6-c-notification-drawer__list-item-header-title--max-lines: 2" |
| 968 |
> |
| 969 |
<span class="pf-v6-screen-reader">Success notification:</span> |
| 970 |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis odio risus. Ut dictum vitae sapien at posuere. Nullam suscipit massa quis lacus pellentesque scelerisque. Donec non maximus neque, quis ornare nunc. Vivamus in nibh sed libero feugiat feugiat. Nulla lacinia rutrum est, a commodo odio vestibulum suscipit. Nullam id quam et quam porttitor interdum quis nec tellus. Vestibulum arcu dui, pulvinar eu tellus in, semper mattis diam. Sed commodo tincidunt lacus non pulvinar. Curabitur tempor molestie vestibulum. Vivamus vel mi dignissim, efficitur neque eget, efficitur massa. Mauris vitae nunc augue. Donec augue lorem, malesuada et quam vitae, volutpat mattis nisi. Nullam nec venenatis ex, quis lobortis purus. Sed nisl dolor, mattis sit amet tincidunt quis, mollis sed massa. |
| 971 |
</h2> |
| 972 |
</div> |
| 973 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 974 |
<button |
| 975 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 976 |
type="button" |
| 977 |
aria-expanded="false" |
| 978 |
aria-label="Menu toggle" |
| 979 |
id="notification-drawer-groups-example-group1-menu-toggle-8" |
| 980 |
> |
| 981 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 982 |
<svg |
| 983 |
class="pf-v6-svg" |
| 984 |
fill="currentColor" |
| 985 |
viewBox="0 0 32 32" |
| 986 |
aria-hidden="true" |
| 987 |
role="img" |
| 988 |
width="1em" |
| 989 |
height="1em" |
| 990 |
> |
| 991 |
<path |
| 992 |
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" |
| 993 |
/> |
| 994 |
</svg> |
| 995 |
</span> |
| 996 |
</button> |
| 997 |
</div> |
| 998 |
<div |
| 999 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 1000 |
>This example uses ".pf-m-truncate" and sets "--pf-v6-c-notification-drawer__list-item-header-title--max-lines: 2" to limit title to two lines and truncate any overflow text with ellipses.</div> |
| 1001 |
<div |
| 1002 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 1003 |
>50 minutes ago</div> |
| 1004 |
</li> |
| 1005 |
<li |
| 1006 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-success" |
| 1007 |
> |
| 1008 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 1009 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 1010 |
<svg |
| 1011 |
class="pf-v6-svg" |
| 1012 |
fill="currentColor" |
| 1013 |
viewBox="0 0 32 32" |
| 1014 |
aria-hidden="true" |
| 1015 |
role="img" |
| 1016 |
width="1em" |
| 1017 |
height="1em" |
| 1018 |
> |
| 1019 |
<path |
| 1020 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z" |
| 1021 |
/> |
| 1022 |
</svg> |
| 1023 |
</span> |
| 1024 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 1025 |
<span class="pf-v6-screen-reader">Success notification:</span> |
| 1026 |
Notification drawer item title |
| 1027 |
</h2> |
| 1028 |
</div> |
| 1029 |
<div |
| 1030 |
class="pf-v6-c-notification-drawer__list-item-action pf-m-no-offset" |
| 1031 |
> |
| 1032 |
<button class="pf-v6-c-button pf-m-primary" type="button"> |
| 1033 |
<span class="pf-v6-c-button__text">Action</span> |
| 1034 |
</button> |
| 1035 |
</div> |
| 1036 |
<div |
| 1037 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 1038 |
>This example uses ".pf-m-no-offset" on the action wrapper to disable the default offset for button alignment.</div> |
| 1039 |
<div |
| 1040 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 1041 |
>55 minutes ago</div> |
| 1042 |
</li> |
| 1043 |
</ul> |
| 1044 |
</section> |
| 1045 |
<section class="pf-v6-c-notification-drawer__group pf-m-expanded"> |
| 1046 |
<h1> |
| 1047 |
<button |
| 1048 |
class="pf-v6-c-notification-drawer__group-toggle" |
| 1049 |
aria-expanded="true" |
| 1050 |
> |
| 1051 |
<div |
| 1052 |
class="pf-v6-c-notification-drawer__group-toggle-title" |
| 1053 |
>Second notification group</div> |
| 1054 |
<div class="pf-v6-c-notification-drawer__group-toggle-count"> |
| 1055 |
<span class="pf-v6-c-badge pf-m-unread">2</span> |
| 1056 |
</div> |
| 1057 |
<span class="pf-v6-c-notification-drawer__group-toggle-icon"> |
| 1058 |
<svg |
| 1059 |
class="pf-v6-svg" |
| 1060 |
fill="currentColor" |
| 1061 |
viewBox="0 0 20 20" |
| 1062 |
aria-hidden="true" |
| 1063 |
role="img" |
| 1064 |
width="1em" |
| 1065 |
height="1em" |
| 1066 |
> |
| 1067 |
<path |
| 1068 |
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z" |
| 1069 |
/> |
| 1070 |
</svg> |
| 1071 |
</span> |
| 1072 |
</button> |
| 1073 |
</h1> |
| 1074 |
<ul class="pf-v6-c-notification-drawer__list" role="list"> |
| 1075 |
<li |
| 1076 |
class="pf-v6-c-notification-drawer__list-item pf-m-hoverable pf-m-info" |
| 1077 |
tabindex="0" |
| 1078 |
> |
| 1079 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 1080 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 1081 |
<svg |
| 1082 |
class="pf-v6-svg" |
| 1083 |
fill="currentColor" |
| 1084 |
viewBox="0 0 32 32" |
| 1085 |
aria-hidden="true" |
| 1086 |
role="img" |
| 1087 |
width="1em" |
| 1088 |
height="1em" |
| 1089 |
> |
| 1090 |
<path |
| 1091 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm1.5 22a1.5 1.5 0 1 1-3 0v-5.157l-.188.04a1.5 1.5 0 0 1-.625-2.934l1.956-.416c.112-.024.223-.032.333-.03l.024-.002a1.5 1.5 0 0 1 1.5 1.5v7Zm-.08-12.58c-.38.37-.89.58-1.42.58a1.998 1.998 0 0 1-1.851-2.76c.051-.13.11-.24.19-.35.07-.11.15-.21.25-.3.74-.75 2.08-.75 2.83 0 .09.09.17.19.24.3.08.11.14.22.189.35.05.12.09.24.11.37.03.13.04.26.04.39 0 .53-.21 1.04-.58 1.42Z" |
| 1092 |
/> |
| 1093 |
</svg> |
| 1094 |
</span> |
| 1095 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 1096 |
<span class="pf-v6-screen-reader">Info notification:</span> |
| 1097 |
Unread |
| 1098 |
info notification title |
| 1099 |
</h2> |
| 1100 |
</div> |
| 1101 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 1102 |
<button |
| 1103 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 1104 |
type="button" |
| 1105 |
aria-expanded="false" |
| 1106 |
aria-label="Menu toggle" |
| 1107 |
id="notification-drawer-groups-example-group2-menu-toggle-1" |
| 1108 |
> |
| 1109 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 1110 |
<svg |
| 1111 |
class="pf-v6-svg" |
| 1112 |
fill="currentColor" |
| 1113 |
viewBox="0 0 32 32" |
| 1114 |
aria-hidden="true" |
| 1115 |
role="img" |
| 1116 |
width="1em" |
| 1117 |
height="1em" |
| 1118 |
> |
| 1119 |
<path |
| 1120 |
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" |
| 1121 |
/> |
| 1122 |
</svg> |
| 1123 |
</span> |
| 1124 |
</button> |
| 1125 |
</div> |
| 1126 |
<div |
| 1127 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 1128 |
>This is an info notification description.</div> |
| 1129 |
<div |
| 1130 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 1131 |
>5 minutes ago</div> |
| 1132 |
</li> |
| 1133 |
|
| 1134 |
<li |
| 1135 |
class="pf-v6-c-notification-drawer__list-item pf-m-hoverable pf-m-custom" |
| 1136 |
tabindex="0" |
| 1137 |
> |
| 1138 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 1139 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 1140 |
<svg |
| 1141 |
class="pf-v6-svg" |
| 1142 |
fill="currentColor" |
| 1143 |
viewBox="0 0 32 32" |
| 1144 |
aria-hidden="true" |
| 1145 |
role="img" |
| 1146 |
width="1em" |
| 1147 |
height="1em" |
| 1148 |
> |
| 1149 |
<path |
| 1150 |
d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z" |
| 1151 |
/> |
| 1152 |
</svg> |
| 1153 |
</span> |
| 1154 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 1155 |
<span class="pf-v6-screen-reader">Custom notification:</span> |
| 1156 |
Unread |
| 1157 |
recommendation notification title. This is a long title to show how the title will wrap if it is long and wraps to multiple lines. |
| 1158 |
</h2> |
| 1159 |
</div> |
| 1160 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 1161 |
<button |
| 1162 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 1163 |
type="button" |
| 1164 |
aria-expanded="false" |
| 1165 |
aria-label="Menu toggle" |
| 1166 |
id="notification-drawer-groups-example-group2-menu-toggle-3" |
| 1167 |
> |
| 1168 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 1169 |
<svg |
| 1170 |
class="pf-v6-svg" |
| 1171 |
fill="currentColor" |
| 1172 |
viewBox="0 0 32 32" |
| 1173 |
aria-hidden="true" |
| 1174 |
role="img" |
| 1175 |
width="1em" |
| 1176 |
height="1em" |
| 1177 |
> |
| 1178 |
<path |
| 1179 |
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" |
| 1180 |
/> |
| 1181 |
</svg> |
| 1182 |
</span> |
| 1183 |
</button> |
| 1184 |
</div> |
| 1185 |
<div |
| 1186 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 1187 |
>This is a recommendation notification description. This is a long description to show how the title will wrap if it is long and wraps to multiple lines.</div> |
| 1188 |
<div |
| 1189 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 1190 |
>10 minutes ago</div> |
| 1191 |
</li> |
| 1192 |
|
| 1193 |
<li |
| 1194 |
class="pf-v6-c-notification-drawer__list-item pf-m-hoverable pf-m-custom" |
| 1195 |
tabindex="0" |
| 1196 |
> |
| 1197 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 1198 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 1199 |
<svg |
| 1200 |
class="pf-v6-svg" |
| 1201 |
fill="currentColor" |
| 1202 |
viewBox="0 0 32 32" |
| 1203 |
aria-hidden="true" |
| 1204 |
role="img" |
| 1205 |
width="1em" |
| 1206 |
height="1em" |
| 1207 |
> |
| 1208 |
<path |
| 1209 |
d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z" |
| 1210 |
/> |
| 1211 |
</svg> |
| 1212 |
</span> |
| 1213 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 1214 |
<span class="pf-v6-screen-reader">Custom notification:</span> |
| 1215 |
Unread |
| 1216 |
recommendation notification title. This is a long title to show how the title will wrap if it is long and wraps to multiple lines. |
| 1217 |
</h2> |
| 1218 |
</div> |
| 1219 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 1220 |
<button |
| 1221 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 1222 |
type="button" |
| 1223 |
aria-expanded="false" |
| 1224 |
aria-label="Menu toggle" |
| 1225 |
id="notification-drawer-groups-example-group2-menu-toggle-4" |
| 1226 |
> |
| 1227 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 1228 |
<svg |
| 1229 |
class="pf-v6-svg" |
| 1230 |
fill="currentColor" |
| 1231 |
viewBox="0 0 32 32" |
| 1232 |
aria-hidden="true" |
| 1233 |
role="img" |
| 1234 |
width="1em" |
| 1235 |
height="1em" |
| 1236 |
> |
| 1237 |
<path |
| 1238 |
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" |
| 1239 |
/> |
| 1240 |
</svg> |
| 1241 |
</span> |
| 1242 |
</button> |
| 1243 |
</div> |
| 1244 |
<div |
| 1245 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 1246 |
>This is a recommendation notification description. This is a long description to show how the title will wrap if it is long and wraps to multiple lines.</div> |
| 1247 |
<div |
| 1248 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 1249 |
>20 minutes ago</div> |
| 1250 |
</li> |
| 1251 |
<li |
| 1252 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-warning pf-m-hoverable" |
| 1253 |
> |
| 1254 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 1255 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 1256 |
<svg |
| 1257 |
class="pf-v6-svg" |
| 1258 |
fill="currentColor" |
| 1259 |
viewBox="0 0 32 32" |
| 1260 |
aria-hidden="true" |
| 1261 |
role="img" |
| 1262 |
width="1em" |
| 1263 |
height="1em" |
| 1264 |
> |
| 1265 |
<path |
| 1266 |
d="m31.874 28.514-15.011-27a1.001 1.001 0 0 0-1.748 0l-15.011 27A1 1 0 0 0 .978 30H31a1 1 0 0 0 .874-1.486ZM14.5 12a1.5 1.5 0 0 1 3 0v5a1.5 1.5 0 0 1-3 0v-5ZM16 26.001a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 26.001Z" |
| 1267 |
/> |
| 1268 |
</svg> |
| 1269 |
</span> |
| 1270 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 1271 |
<span class="pf-v6-screen-reader">Warning notification:</span> |
| 1272 |
Read warning notification title |
| 1273 |
</h2> |
| 1274 |
</div> |
| 1275 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 1276 |
<button |
| 1277 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 1278 |
type="button" |
| 1279 |
aria-expanded="false" |
| 1280 |
aria-label="Menu toggle" |
| 1281 |
id="notification-drawer-groups-example-group2-menu-toggle-5" |
| 1282 |
> |
| 1283 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 1284 |
<svg |
| 1285 |
class="pf-v6-svg" |
| 1286 |
fill="currentColor" |
| 1287 |
viewBox="0 0 32 32" |
| 1288 |
aria-hidden="true" |
| 1289 |
role="img" |
| 1290 |
width="1em" |
| 1291 |
height="1em" |
| 1292 |
> |
| 1293 |
<path |
| 1294 |
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" |
| 1295 |
/> |
| 1296 |
</svg> |
| 1297 |
</span> |
| 1298 |
</button> |
| 1299 |
</div> |
| 1300 |
<div |
| 1301 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 1302 |
>This is a warning notification description.</div> |
| 1303 |
<div |
| 1304 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 1305 |
>20 minutes ago</div> |
| 1306 |
</li> |
| 1307 |
<li |
| 1308 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-success pf-m-hoverable" |
| 1309 |
> |
| 1310 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 1311 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 1312 |
<svg |
| 1313 |
class="pf-v6-svg" |
| 1314 |
fill="currentColor" |
| 1315 |
viewBox="0 0 32 32" |
| 1316 |
aria-hidden="true" |
| 1317 |
role="img" |
| 1318 |
width="1em" |
| 1319 |
height="1em" |
| 1320 |
> |
| 1321 |
<path |
| 1322 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z" |
| 1323 |
/> |
| 1324 |
</svg> |
| 1325 |
</span> |
| 1326 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 1327 |
<span class="pf-v6-screen-reader">Success notification:</span> |
| 1328 |
Read success notification title |
| 1329 |
</h2> |
| 1330 |
</div> |
| 1331 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 1332 |
<button |
| 1333 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 1334 |
type="button" |
| 1335 |
aria-expanded="false" |
| 1336 |
aria-label="Menu toggle" |
| 1337 |
id="notification-drawer-groups-example-group2-menu-toggle-6" |
| 1338 |
> |
| 1339 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 1340 |
<svg |
| 1341 |
class="pf-v6-svg" |
| 1342 |
fill="currentColor" |
| 1343 |
viewBox="0 0 32 32" |
| 1344 |
aria-hidden="true" |
| 1345 |
role="img" |
| 1346 |
width="1em" |
| 1347 |
height="1em" |
| 1348 |
> |
| 1349 |
<path |
| 1350 |
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" |
| 1351 |
/> |
| 1352 |
</svg> |
| 1353 |
</span> |
| 1354 |
</button> |
| 1355 |
</div> |
| 1356 |
<div |
| 1357 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 1358 |
>This is a success notification description.</div> |
| 1359 |
<div |
| 1360 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 1361 |
>30 minutes ago</div> |
| 1362 |
</li> |
| 1363 |
<li |
| 1364 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-success pf-m-hoverable" |
| 1365 |
> |
| 1366 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 1367 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 1368 |
<svg |
| 1369 |
class="pf-v6-svg" |
| 1370 |
fill="currentColor" |
| 1371 |
viewBox="0 0 32 32" |
| 1372 |
aria-hidden="true" |
| 1373 |
role="img" |
| 1374 |
width="1em" |
| 1375 |
height="1em" |
| 1376 |
> |
| 1377 |
<path |
| 1378 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z" |
| 1379 |
/> |
| 1380 |
</svg> |
| 1381 |
</span> |
| 1382 |
<h2 |
| 1383 |
class="pf-v6-c-notification-drawer__list-item-header-title pf-m-truncate" |
| 1384 |
> |
| 1385 |
<span class="pf-v6-screen-reader">Success notification:</span> |
| 1386 |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis odio risus. Ut dictum vitae sapien at posuere. Nullam suscipit massa quis lacus pellentesque scelerisque. Donec non maximus neque, quis ornare nunc. Vivamus in nibh sed libero feugiat feugiat. Nulla lacinia rutrum est, a commodo odio vestibulum suscipit. Nullam id quam et quam porttitor interdum quis nec tellus. Vestibulum arcu dui, pulvinar eu tellus in, semper mattis diam. Sed commodo tincidunt lacus non pulvinar. Curabitur tempor molestie vestibulum. Vivamus vel mi dignissim, efficitur neque eget, efficitur massa. Mauris vitae nunc augue. Donec augue lorem, malesuada et quam vitae, volutpat mattis nisi. Nullam nec venenatis ex, quis lobortis purus. Sed nisl dolor, mattis sit amet tincidunt quis, mollis sed massa. |
| 1387 |
</h2> |
| 1388 |
</div> |
| 1389 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 1390 |
<button |
| 1391 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 1392 |
type="button" |
| 1393 |
aria-expanded="false" |
| 1394 |
aria-label="Menu toggle" |
| 1395 |
id="notification-drawer-groups-example-group2-menu-toggle-7" |
| 1396 |
> |
| 1397 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 1398 |
<svg |
| 1399 |
class="pf-v6-svg" |
| 1400 |
fill="currentColor" |
| 1401 |
viewBox="0 0 32 32" |
| 1402 |
aria-hidden="true" |
| 1403 |
role="img" |
| 1404 |
width="1em" |
| 1405 |
height="1em" |
| 1406 |
> |
| 1407 |
<path |
| 1408 |
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" |
| 1409 |
/> |
| 1410 |
</svg> |
| 1411 |
</span> |
| 1412 |
</button> |
| 1413 |
</div> |
| 1414 |
<div |
| 1415 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 1416 |
>This example uses ".pf-m-truncate" to limit the title to a single line and truncate any overflow text with ellipses.</div> |
| 1417 |
<div |
| 1418 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 1419 |
>40 minutes ago</div> |
| 1420 |
</li> |
| 1421 |
<li |
| 1422 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-success pf-m-hoverable" |
| 1423 |
> |
| 1424 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 1425 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 1426 |
<svg |
| 1427 |
class="pf-v6-svg" |
| 1428 |
fill="currentColor" |
| 1429 |
viewBox="0 0 32 32" |
| 1430 |
aria-hidden="true" |
| 1431 |
role="img" |
| 1432 |
width="1em" |
| 1433 |
height="1em" |
| 1434 |
> |
| 1435 |
<path |
| 1436 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z" |
| 1437 |
/> |
| 1438 |
</svg> |
| 1439 |
</span> |
| 1440 |
<h2 |
| 1441 |
class="pf-v6-c-notification-drawer__list-item-header-title pf-m-truncate" |
| 1442 |
style="--pf-v6-c-notification-drawer__list-item-header-title--max-lines: 2" |
| 1443 |
> |
| 1444 |
<span class="pf-v6-screen-reader">Success notification:</span> |
| 1445 |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis odio risus. Ut dictum vitae sapien at posuere. Nullam suscipit massa quis lacus pellentesque scelerisque. Donec non maximus neque, quis ornare nunc. Vivamus in nibh sed libero feugiat feugiat. Nulla lacinia rutrum est, a commodo odio vestibulum suscipit. Nullam id quam et quam porttitor interdum quis nec tellus. Vestibulum arcu dui, pulvinar eu tellus in, semper mattis diam. Sed commodo tincidunt lacus non pulvinar. Curabitur tempor molestie vestibulum. Vivamus vel mi dignissim, efficitur neque eget, efficitur massa. Mauris vitae nunc augue. Donec augue lorem, malesuada et quam vitae, volutpat mattis nisi. Nullam nec venenatis ex, quis lobortis purus. Sed nisl dolor, mattis sit amet tincidunt quis, mollis sed massa. |
| 1446 |
</h2> |
| 1447 |
</div> |
| 1448 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 1449 |
<button |
| 1450 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 1451 |
type="button" |
| 1452 |
aria-expanded="false" |
| 1453 |
aria-label="Menu toggle" |
| 1454 |
id="notification-drawer-groups-example-group2-menu-toggle-8" |
| 1455 |
> |
| 1456 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 1457 |
<svg |
| 1458 |
class="pf-v6-svg" |
| 1459 |
fill="currentColor" |
| 1460 |
viewBox="0 0 32 32" |
| 1461 |
aria-hidden="true" |
| 1462 |
role="img" |
| 1463 |
width="1em" |
| 1464 |
height="1em" |
| 1465 |
> |
| 1466 |
<path |
| 1467 |
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" |
| 1468 |
/> |
| 1469 |
</svg> |
| 1470 |
</span> |
| 1471 |
</button> |
| 1472 |
</div> |
| 1473 |
<div |
| 1474 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 1475 |
>This example uses ".pf-m-truncate" and sets "--pf-v6-c-notification-drawer__list-item-header-title--max-lines: 2" to limit title to two lines and truncate any overflow text with ellipses.</div> |
| 1476 |
<div |
| 1477 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 1478 |
>50 minutes ago</div> |
| 1479 |
</li> |
| 1480 |
<li |
| 1481 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-success" |
| 1482 |
> |
| 1483 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 1484 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 1485 |
<svg |
| 1486 |
class="pf-v6-svg" |
| 1487 |
fill="currentColor" |
| 1488 |
viewBox="0 0 32 32" |
| 1489 |
aria-hidden="true" |
| 1490 |
role="img" |
| 1491 |
width="1em" |
| 1492 |
height="1em" |
| 1493 |
> |
| 1494 |
<path |
| 1495 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z" |
| 1496 |
/> |
| 1497 |
</svg> |
| 1498 |
</span> |
| 1499 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 1500 |
<span class="pf-v6-screen-reader">Success notification:</span> |
| 1501 |
Notification drawer item title |
| 1502 |
</h2> |
| 1503 |
</div> |
| 1504 |
<div |
| 1505 |
class="pf-v6-c-notification-drawer__list-item-action pf-m-no-offset" |
| 1506 |
> |
| 1507 |
<button class="pf-v6-c-button pf-m-primary" type="button"> |
| 1508 |
<span class="pf-v6-c-button__text">Action</span> |
| 1509 |
</button> |
| 1510 |
</div> |
| 1511 |
<div |
| 1512 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 1513 |
>This example uses ".pf-m-no-offset" on the action wrapper to disable the default offset for button alignment.</div> |
| 1514 |
<div |
| 1515 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 1516 |
>55 minutes ago</div> |
| 1517 |
</li> |
| 1518 |
</ul> |
| 1519 |
</section> |
| 1520 |
<section class="pf-v6-c-notification-drawer__group"> |
| 1521 |
<h1> |
| 1522 |
<button |
| 1523 |
class="pf-v6-c-notification-drawer__group-toggle" |
| 1524 |
aria-expanded="false" |
| 1525 |
> |
| 1526 |
<div |
| 1527 |
class="pf-v6-c-notification-drawer__group-toggle-title" |
| 1528 |
>Third notification group</div> |
| 1529 |
<div class="pf-v6-c-notification-drawer__group-toggle-count"> |
| 1530 |
<span class="pf-v6-c-badge pf-m-unread">3</span> |
| 1531 |
</div> |
| 1532 |
<span class="pf-v6-c-notification-drawer__group-toggle-icon"> |
| 1533 |
<svg |
| 1534 |
class="pf-v6-svg" |
| 1535 |
fill="currentColor" |
| 1536 |
viewBox="0 0 20 20" |
| 1537 |
aria-hidden="true" |
| 1538 |
role="img" |
| 1539 |
width="1em" |
| 1540 |
height="1em" |
| 1541 |
> |
| 1542 |
<path |
| 1543 |
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z" |
| 1544 |
/> |
| 1545 |
</svg> |
| 1546 |
</span> |
| 1547 |
</button> |
| 1548 |
</h1> |
| 1549 |
<ul class="pf-v6-c-notification-drawer__list" role="list" hidden> |
| 1550 |
<li |
| 1551 |
class="pf-v6-c-notification-drawer__list-item pf-m-hoverable pf-m-info" |
| 1552 |
tabindex="0" |
| 1553 |
> |
| 1554 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 1555 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 1556 |
<svg |
| 1557 |
class="pf-v6-svg" |
| 1558 |
fill="currentColor" |
| 1559 |
viewBox="0 0 32 32" |
| 1560 |
aria-hidden="true" |
| 1561 |
role="img" |
| 1562 |
width="1em" |
| 1563 |
height="1em" |
| 1564 |
> |
| 1565 |
<path |
| 1566 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm1.5 22a1.5 1.5 0 1 1-3 0v-5.157l-.188.04a1.5 1.5 0 0 1-.625-2.934l1.956-.416c.112-.024.223-.032.333-.03l.024-.002a1.5 1.5 0 0 1 1.5 1.5v7Zm-.08-12.58c-.38.37-.89.58-1.42.58a1.998 1.998 0 0 1-1.851-2.76c.051-.13.11-.24.19-.35.07-.11.15-.21.25-.3.74-.75 2.08-.75 2.83 0 .09.09.17.19.24.3.08.11.14.22.189.35.05.12.09.24.11.37.03.13.04.26.04.39 0 .53-.21 1.04-.58 1.42Z" |
| 1567 |
/> |
| 1568 |
</svg> |
| 1569 |
</span> |
| 1570 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 1571 |
<span class="pf-v6-screen-reader">Info notification:</span> |
| 1572 |
Unread |
| 1573 |
info notification title |
| 1574 |
</h2> |
| 1575 |
</div> |
| 1576 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 1577 |
<button |
| 1578 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 1579 |
type="button" |
| 1580 |
aria-expanded="false" |
| 1581 |
aria-label="Menu toggle" |
| 1582 |
id="notification-drawer-groups-example-group3-menu-toggle-1" |
| 1583 |
> |
| 1584 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 1585 |
<svg |
| 1586 |
class="pf-v6-svg" |
| 1587 |
fill="currentColor" |
| 1588 |
viewBox="0 0 32 32" |
| 1589 |
aria-hidden="true" |
| 1590 |
role="img" |
| 1591 |
width="1em" |
| 1592 |
height="1em" |
| 1593 |
> |
| 1594 |
<path |
| 1595 |
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" |
| 1596 |
/> |
| 1597 |
</svg> |
| 1598 |
</span> |
| 1599 |
</button> |
| 1600 |
</div> |
| 1601 |
<div |
| 1602 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 1603 |
>This is an info notification description.</div> |
| 1604 |
<div |
| 1605 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 1606 |
>5 minutes ago</div> |
| 1607 |
</li> |
| 1608 |
|
| 1609 |
<li |
| 1610 |
class="pf-v6-c-notification-drawer__list-item pf-m-hoverable pf-m-custom" |
| 1611 |
tabindex="0" |
| 1612 |
> |
| 1613 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 1614 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 1615 |
<svg |
| 1616 |
class="pf-v6-svg" |
| 1617 |
fill="currentColor" |
| 1618 |
viewBox="0 0 32 32" |
| 1619 |
aria-hidden="true" |
| 1620 |
role="img" |
| 1621 |
width="1em" |
| 1622 |
height="1em" |
| 1623 |
> |
| 1624 |
<path |
| 1625 |
d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z" |
| 1626 |
/> |
| 1627 |
</svg> |
| 1628 |
</span> |
| 1629 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 1630 |
<span class="pf-v6-screen-reader">Custom notification:</span> |
| 1631 |
Unread |
| 1632 |
recommendation notification title. This is a long title to show how the title will wrap if it is long and wraps to multiple lines. |
| 1633 |
</h2> |
| 1634 |
</div> |
| 1635 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 1636 |
<button |
| 1637 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 1638 |
type="button" |
| 1639 |
aria-expanded="false" |
| 1640 |
aria-label="Menu toggle" |
| 1641 |
id="notification-drawer-groups-example-group3-menu-toggle-3" |
| 1642 |
> |
| 1643 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 1644 |
<svg |
| 1645 |
class="pf-v6-svg" |
| 1646 |
fill="currentColor" |
| 1647 |
viewBox="0 0 32 32" |
| 1648 |
aria-hidden="true" |
| 1649 |
role="img" |
| 1650 |
width="1em" |
| 1651 |
height="1em" |
| 1652 |
> |
| 1653 |
<path |
| 1654 |
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" |
| 1655 |
/> |
| 1656 |
</svg> |
| 1657 |
</span> |
| 1658 |
</button> |
| 1659 |
</div> |
| 1660 |
<div |
| 1661 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 1662 |
>This is a recommendation notification description. This is a long description to show how the title will wrap if it is long and wraps to multiple lines.</div> |
| 1663 |
<div |
| 1664 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 1665 |
>10 minutes ago</div> |
| 1666 |
</li> |
| 1667 |
|
| 1668 |
<li |
| 1669 |
class="pf-v6-c-notification-drawer__list-item pf-m-hoverable pf-m-custom" |
| 1670 |
tabindex="0" |
| 1671 |
> |
| 1672 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 1673 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 1674 |
<svg |
| 1675 |
class="pf-v6-svg" |
| 1676 |
fill="currentColor" |
| 1677 |
viewBox="0 0 32 32" |
| 1678 |
aria-hidden="true" |
| 1679 |
role="img" |
| 1680 |
width="1em" |
| 1681 |
height="1em" |
| 1682 |
> |
| 1683 |
<path |
| 1684 |
d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z" |
| 1685 |
/> |
| 1686 |
</svg> |
| 1687 |
</span> |
| 1688 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 1689 |
<span class="pf-v6-screen-reader">Custom notification:</span> |
| 1690 |
Unread |
| 1691 |
recommendation notification title. This is a long title to show how the title will wrap if it is long and wraps to multiple lines. |
| 1692 |
</h2> |
| 1693 |
</div> |
| 1694 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 1695 |
<button |
| 1696 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 1697 |
type="button" |
| 1698 |
aria-expanded="false" |
| 1699 |
aria-label="Menu toggle" |
| 1700 |
id="notification-drawer-groups-example-group3-menu-toggle-4" |
| 1701 |
> |
| 1702 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 1703 |
<svg |
| 1704 |
class="pf-v6-svg" |
| 1705 |
fill="currentColor" |
| 1706 |
viewBox="0 0 32 32" |
| 1707 |
aria-hidden="true" |
| 1708 |
role="img" |
| 1709 |
width="1em" |
| 1710 |
height="1em" |
| 1711 |
> |
| 1712 |
<path |
| 1713 |
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" |
| 1714 |
/> |
| 1715 |
</svg> |
| 1716 |
</span> |
| 1717 |
</button> |
| 1718 |
</div> |
| 1719 |
<div |
| 1720 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 1721 |
>This is a recommendation notification description. This is a long description to show how the title will wrap if it is long and wraps to multiple lines.</div> |
| 1722 |
<div |
| 1723 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 1724 |
>20 minutes ago</div> |
| 1725 |
</li> |
| 1726 |
<li |
| 1727 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-warning pf-m-hoverable" |
| 1728 |
> |
| 1729 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 1730 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 1731 |
<svg |
| 1732 |
class="pf-v6-svg" |
| 1733 |
fill="currentColor" |
| 1734 |
viewBox="0 0 32 32" |
| 1735 |
aria-hidden="true" |
| 1736 |
role="img" |
| 1737 |
width="1em" |
| 1738 |
height="1em" |
| 1739 |
> |
| 1740 |
<path |
| 1741 |
d="m31.874 28.514-15.011-27a1.001 1.001 0 0 0-1.748 0l-15.011 27A1 1 0 0 0 .978 30H31a1 1 0 0 0 .874-1.486ZM14.5 12a1.5 1.5 0 0 1 3 0v5a1.5 1.5 0 0 1-3 0v-5ZM16 26.001a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 26.001Z" |
| 1742 |
/> |
| 1743 |
</svg> |
| 1744 |
</span> |
| 1745 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 1746 |
<span class="pf-v6-screen-reader">Warning notification:</span> |
| 1747 |
Read warning notification title |
| 1748 |
</h2> |
| 1749 |
</div> |
| 1750 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 1751 |
<button |
| 1752 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 1753 |
type="button" |
| 1754 |
aria-expanded="false" |
| 1755 |
aria-label="Menu toggle" |
| 1756 |
id="notification-drawer-groups-example-group3-menu-toggle-5" |
| 1757 |
> |
| 1758 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 1759 |
<svg |
| 1760 |
class="pf-v6-svg" |
| 1761 |
fill="currentColor" |
| 1762 |
viewBox="0 0 32 32" |
| 1763 |
aria-hidden="true" |
| 1764 |
role="img" |
| 1765 |
width="1em" |
| 1766 |
height="1em" |
| 1767 |
> |
| 1768 |
<path |
| 1769 |
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" |
| 1770 |
/> |
| 1771 |
</svg> |
| 1772 |
</span> |
| 1773 |
</button> |
| 1774 |
</div> |
| 1775 |
<div |
| 1776 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 1777 |
>This is a warning notification description.</div> |
| 1778 |
<div |
| 1779 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 1780 |
>20 minutes ago</div> |
| 1781 |
</li> |
| 1782 |
<li |
| 1783 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-success pf-m-hoverable" |
| 1784 |
> |
| 1785 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 1786 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 1787 |
<svg |
| 1788 |
class="pf-v6-svg" |
| 1789 |
fill="currentColor" |
| 1790 |
viewBox="0 0 32 32" |
| 1791 |
aria-hidden="true" |
| 1792 |
role="img" |
| 1793 |
width="1em" |
| 1794 |
height="1em" |
| 1795 |
> |
| 1796 |
<path |
| 1797 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z" |
| 1798 |
/> |
| 1799 |
</svg> |
| 1800 |
</span> |
| 1801 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 1802 |
<span class="pf-v6-screen-reader">Success notification:</span> |
| 1803 |
Read success notification title |
| 1804 |
</h2> |
| 1805 |
</div> |
| 1806 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 1807 |
<button |
| 1808 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 1809 |
type="button" |
| 1810 |
aria-expanded="false" |
| 1811 |
aria-label="Menu toggle" |
| 1812 |
id="notification-drawer-groups-example-group3-menu-toggle-6" |
| 1813 |
> |
| 1814 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 1815 |
<svg |
| 1816 |
class="pf-v6-svg" |
| 1817 |
fill="currentColor" |
| 1818 |
viewBox="0 0 32 32" |
| 1819 |
aria-hidden="true" |
| 1820 |
role="img" |
| 1821 |
width="1em" |
| 1822 |
height="1em" |
| 1823 |
> |
| 1824 |
<path |
| 1825 |
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" |
| 1826 |
/> |
| 1827 |
</svg> |
| 1828 |
</span> |
| 1829 |
</button> |
| 1830 |
</div> |
| 1831 |
<div |
| 1832 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 1833 |
>This is a success notification description.</div> |
| 1834 |
<div |
| 1835 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 1836 |
>30 minutes ago</div> |
| 1837 |
</li> |
| 1838 |
<li |
| 1839 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-success pf-m-hoverable" |
| 1840 |
> |
| 1841 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 1842 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 1843 |
<svg |
| 1844 |
class="pf-v6-svg" |
| 1845 |
fill="currentColor" |
| 1846 |
viewBox="0 0 32 32" |
| 1847 |
aria-hidden="true" |
| 1848 |
role="img" |
| 1849 |
width="1em" |
| 1850 |
height="1em" |
| 1851 |
> |
| 1852 |
<path |
| 1853 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z" |
| 1854 |
/> |
| 1855 |
</svg> |
| 1856 |
</span> |
| 1857 |
<h2 |
| 1858 |
class="pf-v6-c-notification-drawer__list-item-header-title pf-m-truncate" |
| 1859 |
> |
| 1860 |
<span class="pf-v6-screen-reader">Success notification:</span> |
| 1861 |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis odio risus. Ut dictum vitae sapien at posuere. Nullam suscipit massa quis lacus pellentesque scelerisque. Donec non maximus neque, quis ornare nunc. Vivamus in nibh sed libero feugiat feugiat. Nulla lacinia rutrum est, a commodo odio vestibulum suscipit. Nullam id quam et quam porttitor interdum quis nec tellus. Vestibulum arcu dui, pulvinar eu tellus in, semper mattis diam. Sed commodo tincidunt lacus non pulvinar. Curabitur tempor molestie vestibulum. Vivamus vel mi dignissim, efficitur neque eget, efficitur massa. Mauris vitae nunc augue. Donec augue lorem, malesuada et quam vitae, volutpat mattis nisi. Nullam nec venenatis ex, quis lobortis purus. Sed nisl dolor, mattis sit amet tincidunt quis, mollis sed massa. |
| 1862 |
</h2> |
| 1863 |
</div> |
| 1864 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 1865 |
<button |
| 1866 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 1867 |
type="button" |
| 1868 |
aria-expanded="false" |
| 1869 |
aria-label="Menu toggle" |
| 1870 |
id="notification-drawer-groups-example-group3-menu-toggle-7" |
| 1871 |
> |
| 1872 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 1873 |
<svg |
| 1874 |
class="pf-v6-svg" |
| 1875 |
fill="currentColor" |
| 1876 |
viewBox="0 0 32 32" |
| 1877 |
aria-hidden="true" |
| 1878 |
role="img" |
| 1879 |
width="1em" |
| 1880 |
height="1em" |
| 1881 |
> |
| 1882 |
<path |
| 1883 |
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" |
| 1884 |
/> |
| 1885 |
</svg> |
| 1886 |
</span> |
| 1887 |
</button> |
| 1888 |
</div> |
| 1889 |
<div |
| 1890 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 1891 |
>This example uses ".pf-m-truncate" to limit the title to a single line and truncate any overflow text with ellipses.</div> |
| 1892 |
<div |
| 1893 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 1894 |
>40 minutes ago</div> |
| 1895 |
</li> |
| 1896 |
<li |
| 1897 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-success pf-m-hoverable" |
| 1898 |
> |
| 1899 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 1900 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 1901 |
<svg |
| 1902 |
class="pf-v6-svg" |
| 1903 |
fill="currentColor" |
| 1904 |
viewBox="0 0 32 32" |
| 1905 |
aria-hidden="true" |
| 1906 |
role="img" |
| 1907 |
width="1em" |
| 1908 |
height="1em" |
| 1909 |
> |
| 1910 |
<path |
| 1911 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z" |
| 1912 |
/> |
| 1913 |
</svg> |
| 1914 |
</span> |
| 1915 |
<h2 |
| 1916 |
class="pf-v6-c-notification-drawer__list-item-header-title pf-m-truncate" |
| 1917 |
style="--pf-v6-c-notification-drawer__list-item-header-title--max-lines: 2" |
| 1918 |
> |
| 1919 |
<span class="pf-v6-screen-reader">Success notification:</span> |
| 1920 |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis odio risus. Ut dictum vitae sapien at posuere. Nullam suscipit massa quis lacus pellentesque scelerisque. Donec non maximus neque, quis ornare nunc. Vivamus in nibh sed libero feugiat feugiat. Nulla lacinia rutrum est, a commodo odio vestibulum suscipit. Nullam id quam et quam porttitor interdum quis nec tellus. Vestibulum arcu dui, pulvinar eu tellus in, semper mattis diam. Sed commodo tincidunt lacus non pulvinar. Curabitur tempor molestie vestibulum. Vivamus vel mi dignissim, efficitur neque eget, efficitur massa. Mauris vitae nunc augue. Donec augue lorem, malesuada et quam vitae, volutpat mattis nisi. Nullam nec venenatis ex, quis lobortis purus. Sed nisl dolor, mattis sit amet tincidunt quis, mollis sed massa. |
| 1921 |
</h2> |
| 1922 |
</div> |
| 1923 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 1924 |
<button |
| 1925 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 1926 |
type="button" |
| 1927 |
aria-expanded="false" |
| 1928 |
aria-label="Menu toggle" |
| 1929 |
id="notification-drawer-groups-example-group3-menu-toggle-8" |
| 1930 |
> |
| 1931 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 1932 |
<svg |
| 1933 |
class="pf-v6-svg" |
| 1934 |
fill="currentColor" |
| 1935 |
viewBox="0 0 32 32" |
| 1936 |
aria-hidden="true" |
| 1937 |
role="img" |
| 1938 |
width="1em" |
| 1939 |
height="1em" |
| 1940 |
> |
| 1941 |
<path |
| 1942 |
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" |
| 1943 |
/> |
| 1944 |
</svg> |
| 1945 |
</span> |
| 1946 |
</button> |
| 1947 |
</div> |
| 1948 |
<div |
| 1949 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 1950 |
>This example uses ".pf-m-truncate" and sets "--pf-v6-c-notification-drawer__list-item-header-title--max-lines: 2" to limit title to two lines and truncate any overflow text with ellipses.</div> |
| 1951 |
<div |
| 1952 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 1953 |
>50 minutes ago</div> |
| 1954 |
</li> |
| 1955 |
<li |
| 1956 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-success" |
| 1957 |
> |
| 1958 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 1959 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 1960 |
<svg |
| 1961 |
class="pf-v6-svg" |
| 1962 |
fill="currentColor" |
| 1963 |
viewBox="0 0 32 32" |
| 1964 |
aria-hidden="true" |
| 1965 |
role="img" |
| 1966 |
width="1em" |
| 1967 |
height="1em" |
| 1968 |
> |
| 1969 |
<path |
| 1970 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z" |
| 1971 |
/> |
| 1972 |
</svg> |
| 1973 |
</span> |
| 1974 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 1975 |
<span class="pf-v6-screen-reader">Success notification:</span> |
| 1976 |
Notification drawer item title |
| 1977 |
</h2> |
| 1978 |
</div> |
| 1979 |
<div |
| 1980 |
class="pf-v6-c-notification-drawer__list-item-action pf-m-no-offset" |
| 1981 |
> |
| 1982 |
<button class="pf-v6-c-button pf-m-primary" type="button"> |
| 1983 |
<span class="pf-v6-c-button__text">Action</span> |
| 1984 |
</button> |
| 1985 |
</div> |
| 1986 |
<div |
| 1987 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 1988 |
>This example uses ".pf-m-no-offset" on the action wrapper to disable the default offset for button alignment.</div> |
| 1989 |
<div |
| 1990 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 1991 |
>55 minutes ago</div> |
| 1992 |
</li> |
| 1993 |
</ul> |
| 1994 |
</section> |
| 1995 |
<section class="pf-v6-c-notification-drawer__group"> |
| 1996 |
<h1> |
| 1997 |
<button |
| 1998 |
class="pf-v6-c-notification-drawer__group-toggle" |
| 1999 |
aria-expanded="false" |
| 2000 |
> |
| 2001 |
<div |
| 2002 |
class="pf-v6-c-notification-drawer__group-toggle-title" |
| 2003 |
>Fourth notification group</div> |
| 2004 |
<div class="pf-v6-c-notification-drawer__group-toggle-count"> |
| 2005 |
<span class="pf-v6-c-badge pf-m-unread">2</span> |
| 2006 |
</div> |
| 2007 |
<span class="pf-v6-c-notification-drawer__group-toggle-icon"> |
| 2008 |
<svg |
| 2009 |
class="pf-v6-svg" |
| 2010 |
fill="currentColor" |
| 2011 |
viewBox="0 0 20 20" |
| 2012 |
aria-hidden="true" |
| 2013 |
role="img" |
| 2014 |
width="1em" |
| 2015 |
height="1em" |
| 2016 |
> |
| 2017 |
<path |
| 2018 |
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z" |
| 2019 |
/> |
| 2020 |
</svg> |
| 2021 |
</span> |
| 2022 |
</button> |
| 2023 |
</h1> |
| 2024 |
<ul class="pf-v6-c-notification-drawer__list" role="list" hidden> |
| 2025 |
<li |
| 2026 |
class="pf-v6-c-notification-drawer__list-item pf-m-hoverable pf-m-info" |
| 2027 |
tabindex="0" |
| 2028 |
> |
| 2029 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 2030 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 2031 |
<svg |
| 2032 |
class="pf-v6-svg" |
| 2033 |
fill="currentColor" |
| 2034 |
viewBox="0 0 32 32" |
| 2035 |
aria-hidden="true" |
| 2036 |
role="img" |
| 2037 |
width="1em" |
| 2038 |
height="1em" |
| 2039 |
> |
| 2040 |
<path |
| 2041 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm1.5 22a1.5 1.5 0 1 1-3 0v-5.157l-.188.04a1.5 1.5 0 0 1-.625-2.934l1.956-.416c.112-.024.223-.032.333-.03l.024-.002a1.5 1.5 0 0 1 1.5 1.5v7Zm-.08-12.58c-.38.37-.89.58-1.42.58a1.998 1.998 0 0 1-1.851-2.76c.051-.13.11-.24.19-.35.07-.11.15-.21.25-.3.74-.75 2.08-.75 2.83 0 .09.09.17.19.24.3.08.11.14.22.189.35.05.12.09.24.11.37.03.13.04.26.04.39 0 .53-.21 1.04-.58 1.42Z" |
| 2042 |
/> |
| 2043 |
</svg> |
| 2044 |
</span> |
| 2045 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 2046 |
<span class="pf-v6-screen-reader">Info notification:</span> |
| 2047 |
Unread |
| 2048 |
info notification title |
| 2049 |
</h2> |
| 2050 |
</div> |
| 2051 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 2052 |
<button |
| 2053 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 2054 |
type="button" |
| 2055 |
aria-expanded="false" |
| 2056 |
aria-label="Menu toggle" |
| 2057 |
id="notification-drawer-groups-example-group4-menu-toggle-1" |
| 2058 |
> |
| 2059 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 2060 |
<svg |
| 2061 |
class="pf-v6-svg" |
| 2062 |
fill="currentColor" |
| 2063 |
viewBox="0 0 32 32" |
| 2064 |
aria-hidden="true" |
| 2065 |
role="img" |
| 2066 |
width="1em" |
| 2067 |
height="1em" |
| 2068 |
> |
| 2069 |
<path |
| 2070 |
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" |
| 2071 |
/> |
| 2072 |
</svg> |
| 2073 |
</span> |
| 2074 |
</button> |
| 2075 |
</div> |
| 2076 |
<div |
| 2077 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 2078 |
>This is an info notification description.</div> |
| 2079 |
<div |
| 2080 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 2081 |
>5 minutes ago</div> |
| 2082 |
</li> |
| 2083 |
|
| 2084 |
<li |
| 2085 |
class="pf-v6-c-notification-drawer__list-item pf-m-hoverable pf-m-custom" |
| 2086 |
tabindex="0" |
| 2087 |
> |
| 2088 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 2089 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 2090 |
<svg |
| 2091 |
class="pf-v6-svg" |
| 2092 |
fill="currentColor" |
| 2093 |
viewBox="0 0 32 32" |
| 2094 |
aria-hidden="true" |
| 2095 |
role="img" |
| 2096 |
width="1em" |
| 2097 |
height="1em" |
| 2098 |
> |
| 2099 |
<path |
| 2100 |
d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z" |
| 2101 |
/> |
| 2102 |
</svg> |
| 2103 |
</span> |
| 2104 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 2105 |
<span class="pf-v6-screen-reader">Custom notification:</span> |
| 2106 |
Unread |
| 2107 |
recommendation notification title. This is a long title to show how the title will wrap if it is long and wraps to multiple lines. |
| 2108 |
</h2> |
| 2109 |
</div> |
| 2110 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 2111 |
<button |
| 2112 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 2113 |
type="button" |
| 2114 |
aria-expanded="false" |
| 2115 |
aria-label="Menu toggle" |
| 2116 |
id="notification-drawer-groups-example-group4-menu-toggle-3" |
| 2117 |
> |
| 2118 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 2119 |
<svg |
| 2120 |
class="pf-v6-svg" |
| 2121 |
fill="currentColor" |
| 2122 |
viewBox="0 0 32 32" |
| 2123 |
aria-hidden="true" |
| 2124 |
role="img" |
| 2125 |
width="1em" |
| 2126 |
height="1em" |
| 2127 |
> |
| 2128 |
<path |
| 2129 |
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" |
| 2130 |
/> |
| 2131 |
</svg> |
| 2132 |
</span> |
| 2133 |
</button> |
| 2134 |
</div> |
| 2135 |
<div |
| 2136 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 2137 |
>This is a recommendation notification description. This is a long description to show how the title will wrap if it is long and wraps to multiple lines.</div> |
| 2138 |
<div |
| 2139 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 2140 |
>10 minutes ago</div> |
| 2141 |
</li> |
| 2142 |
|
| 2143 |
<li |
| 2144 |
class="pf-v6-c-notification-drawer__list-item pf-m-hoverable pf-m-custom" |
| 2145 |
tabindex="0" |
| 2146 |
> |
| 2147 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 2148 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 2149 |
<svg |
| 2150 |
class="pf-v6-svg" |
| 2151 |
fill="currentColor" |
| 2152 |
viewBox="0 0 32 32" |
| 2153 |
aria-hidden="true" |
| 2154 |
role="img" |
| 2155 |
width="1em" |
| 2156 |
height="1em" |
| 2157 |
> |
| 2158 |
<path |
| 2159 |
d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z" |
| 2160 |
/> |
| 2161 |
</svg> |
| 2162 |
</span> |
| 2163 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 2164 |
<span class="pf-v6-screen-reader">Custom notification:</span> |
| 2165 |
Unread |
| 2166 |
recommendation notification title. This is a long title to show how the title will wrap if it is long and wraps to multiple lines. |
| 2167 |
</h2> |
| 2168 |
</div> |
| 2169 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 2170 |
<button |
| 2171 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 2172 |
type="button" |
| 2173 |
aria-expanded="false" |
| 2174 |
aria-label="Menu toggle" |
| 2175 |
id="notification-drawer-groups-example-group4-menu-toggle-4" |
| 2176 |
> |
| 2177 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 2178 |
<svg |
| 2179 |
class="pf-v6-svg" |
| 2180 |
fill="currentColor" |
| 2181 |
viewBox="0 0 32 32" |
| 2182 |
aria-hidden="true" |
| 2183 |
role="img" |
| 2184 |
width="1em" |
| 2185 |
height="1em" |
| 2186 |
> |
| 2187 |
<path |
| 2188 |
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" |
| 2189 |
/> |
| 2190 |
</svg> |
| 2191 |
</span> |
| 2192 |
</button> |
| 2193 |
</div> |
| 2194 |
<div |
| 2195 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 2196 |
>This is a recommendation notification description. This is a long description to show how the title will wrap if it is long and wraps to multiple lines.</div> |
| 2197 |
<div |
| 2198 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 2199 |
>20 minutes ago</div> |
| 2200 |
</li> |
| 2201 |
<li |
| 2202 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-warning pf-m-hoverable" |
| 2203 |
> |
| 2204 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 2205 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 2206 |
<svg |
| 2207 |
class="pf-v6-svg" |
| 2208 |
fill="currentColor" |
| 2209 |
viewBox="0 0 32 32" |
| 2210 |
aria-hidden="true" |
| 2211 |
role="img" |
| 2212 |
width="1em" |
| 2213 |
height="1em" |
| 2214 |
> |
| 2215 |
<path |
| 2216 |
d="m31.874 28.514-15.011-27a1.001 1.001 0 0 0-1.748 0l-15.011 27A1 1 0 0 0 .978 30H31a1 1 0 0 0 .874-1.486ZM14.5 12a1.5 1.5 0 0 1 3 0v5a1.5 1.5 0 0 1-3 0v-5ZM16 26.001a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 26.001Z" |
| 2217 |
/> |
| 2218 |
</svg> |
| 2219 |
</span> |
| 2220 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 2221 |
<span class="pf-v6-screen-reader">Warning notification:</span> |
| 2222 |
Read warning notification title |
| 2223 |
</h2> |
| 2224 |
</div> |
| 2225 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 2226 |
<button |
| 2227 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 2228 |
type="button" |
| 2229 |
aria-expanded="false" |
| 2230 |
aria-label="Menu toggle" |
| 2231 |
id="notification-drawer-groups-example-group4-menu-toggle-5" |
| 2232 |
> |
| 2233 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 2234 |
<svg |
| 2235 |
class="pf-v6-svg" |
| 2236 |
fill="currentColor" |
| 2237 |
viewBox="0 0 32 32" |
| 2238 |
aria-hidden="true" |
| 2239 |
role="img" |
| 2240 |
width="1em" |
| 2241 |
height="1em" |
| 2242 |
> |
| 2243 |
<path |
| 2244 |
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" |
| 2245 |
/> |
| 2246 |
</svg> |
| 2247 |
</span> |
| 2248 |
</button> |
| 2249 |
</div> |
| 2250 |
<div |
| 2251 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 2252 |
>This is a warning notification description.</div> |
| 2253 |
<div |
| 2254 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 2255 |
>20 minutes ago</div> |
| 2256 |
</li> |
| 2257 |
<li |
| 2258 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-success pf-m-hoverable" |
| 2259 |
> |
| 2260 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 2261 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 2262 |
<svg |
| 2263 |
class="pf-v6-svg" |
| 2264 |
fill="currentColor" |
| 2265 |
viewBox="0 0 32 32" |
| 2266 |
aria-hidden="true" |
| 2267 |
role="img" |
| 2268 |
width="1em" |
| 2269 |
height="1em" |
| 2270 |
> |
| 2271 |
<path |
| 2272 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z" |
| 2273 |
/> |
| 2274 |
</svg> |
| 2275 |
</span> |
| 2276 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 2277 |
<span class="pf-v6-screen-reader">Success notification:</span> |
| 2278 |
Read success notification title |
| 2279 |
</h2> |
| 2280 |
</div> |
| 2281 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 2282 |
<button |
| 2283 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 2284 |
type="button" |
| 2285 |
aria-expanded="false" |
| 2286 |
aria-label="Menu toggle" |
| 2287 |
id="notification-drawer-groups-example-group4-menu-toggle-6" |
| 2288 |
> |
| 2289 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 2290 |
<svg |
| 2291 |
class="pf-v6-svg" |
| 2292 |
fill="currentColor" |
| 2293 |
viewBox="0 0 32 32" |
| 2294 |
aria-hidden="true" |
| 2295 |
role="img" |
| 2296 |
width="1em" |
| 2297 |
height="1em" |
| 2298 |
> |
| 2299 |
<path |
| 2300 |
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" |
| 2301 |
/> |
| 2302 |
</svg> |
| 2303 |
</span> |
| 2304 |
</button> |
| 2305 |
</div> |
| 2306 |
<div |
| 2307 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 2308 |
>This is a success notification description.</div> |
| 2309 |
<div |
| 2310 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 2311 |
>30 minutes ago</div> |
| 2312 |
</li> |
| 2313 |
<li |
| 2314 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-success pf-m-hoverable" |
| 2315 |
> |
| 2316 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 2317 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 2318 |
<svg |
| 2319 |
class="pf-v6-svg" |
| 2320 |
fill="currentColor" |
| 2321 |
viewBox="0 0 32 32" |
| 2322 |
aria-hidden="true" |
| 2323 |
role="img" |
| 2324 |
width="1em" |
| 2325 |
height="1em" |
| 2326 |
> |
| 2327 |
<path |
| 2328 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z" |
| 2329 |
/> |
| 2330 |
</svg> |
| 2331 |
</span> |
| 2332 |
<h2 |
| 2333 |
class="pf-v6-c-notification-drawer__list-item-header-title pf-m-truncate" |
| 2334 |
> |
| 2335 |
<span class="pf-v6-screen-reader">Success notification:</span> |
| 2336 |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis odio risus. Ut dictum vitae sapien at posuere. Nullam suscipit massa quis lacus pellentesque scelerisque. Donec non maximus neque, quis ornare nunc. Vivamus in nibh sed libero feugiat feugiat. Nulla lacinia rutrum est, a commodo odio vestibulum suscipit. Nullam id quam et quam porttitor interdum quis nec tellus. Vestibulum arcu dui, pulvinar eu tellus in, semper mattis diam. Sed commodo tincidunt lacus non pulvinar. Curabitur tempor molestie vestibulum. Vivamus vel mi dignissim, efficitur neque eget, efficitur massa. Mauris vitae nunc augue. Donec augue lorem, malesuada et quam vitae, volutpat mattis nisi. Nullam nec venenatis ex, quis lobortis purus. Sed nisl dolor, mattis sit amet tincidunt quis, mollis sed massa. |
| 2337 |
</h2> |
| 2338 |
</div> |
| 2339 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 2340 |
<button |
| 2341 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 2342 |
type="button" |
| 2343 |
aria-expanded="false" |
| 2344 |
aria-label="Menu toggle" |
| 2345 |
id="notification-drawer-groups-example-group4-menu-toggle-7" |
| 2346 |
> |
| 2347 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 2348 |
<svg |
| 2349 |
class="pf-v6-svg" |
| 2350 |
fill="currentColor" |
| 2351 |
viewBox="0 0 32 32" |
| 2352 |
aria-hidden="true" |
| 2353 |
role="img" |
| 2354 |
width="1em" |
| 2355 |
height="1em" |
| 2356 |
> |
| 2357 |
<path |
| 2358 |
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" |
| 2359 |
/> |
| 2360 |
</svg> |
| 2361 |
</span> |
| 2362 |
</button> |
| 2363 |
</div> |
| 2364 |
<div |
| 2365 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 2366 |
>This example uses ".pf-m-truncate" to limit the title to a single line and truncate any overflow text with ellipses.</div> |
| 2367 |
<div |
| 2368 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 2369 |
>40 minutes ago</div> |
| 2370 |
</li> |
| 2371 |
<li |
| 2372 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-success pf-m-hoverable" |
| 2373 |
> |
| 2374 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 2375 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 2376 |
<svg |
| 2377 |
class="pf-v6-svg" |
| 2378 |
fill="currentColor" |
| 2379 |
viewBox="0 0 32 32" |
| 2380 |
aria-hidden="true" |
| 2381 |
role="img" |
| 2382 |
width="1em" |
| 2383 |
height="1em" |
| 2384 |
> |
| 2385 |
<path |
| 2386 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z" |
| 2387 |
/> |
| 2388 |
</svg> |
| 2389 |
</span> |
| 2390 |
<h2 |
| 2391 |
class="pf-v6-c-notification-drawer__list-item-header-title pf-m-truncate" |
| 2392 |
style="--pf-v6-c-notification-drawer__list-item-header-title--max-lines: 2" |
| 2393 |
> |
| 2394 |
<span class="pf-v6-screen-reader">Success notification:</span> |
| 2395 |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis odio risus. Ut dictum vitae sapien at posuere. Nullam suscipit massa quis lacus pellentesque scelerisque. Donec non maximus neque, quis ornare nunc. Vivamus in nibh sed libero feugiat feugiat. Nulla lacinia rutrum est, a commodo odio vestibulum suscipit. Nullam id quam et quam porttitor interdum quis nec tellus. Vestibulum arcu dui, pulvinar eu tellus in, semper mattis diam. Sed commodo tincidunt lacus non pulvinar. Curabitur tempor molestie vestibulum. Vivamus vel mi dignissim, efficitur neque eget, efficitur massa. Mauris vitae nunc augue. Donec augue lorem, malesuada et quam vitae, volutpat mattis nisi. Nullam nec venenatis ex, quis lobortis purus. Sed nisl dolor, mattis sit amet tincidunt quis, mollis sed massa. |
| 2396 |
</h2> |
| 2397 |
</div> |
| 2398 |
<div class="pf-v6-c-notification-drawer__list-item-action"> |
| 2399 |
<button |
| 2400 |
class="pf-v6-c-menu-toggle pf-m-plain" |
| 2401 |
type="button" |
| 2402 |
aria-expanded="false" |
| 2403 |
aria-label="Menu toggle" |
| 2404 |
id="notification-drawer-groups-example-group4-menu-toggle-8" |
| 2405 |
> |
| 2406 |
<span class="pf-v6-c-menu-toggle__icon"> |
| 2407 |
<svg |
| 2408 |
class="pf-v6-svg" |
| 2409 |
fill="currentColor" |
| 2410 |
viewBox="0 0 32 32" |
| 2411 |
aria-hidden="true" |
| 2412 |
role="img" |
| 2413 |
width="1em" |
| 2414 |
height="1em" |
| 2415 |
> |
| 2416 |
<path |
| 2417 |
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" |
| 2418 |
/> |
| 2419 |
</svg> |
| 2420 |
</span> |
| 2421 |
</button> |
| 2422 |
</div> |
| 2423 |
<div |
| 2424 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 2425 |
>This example uses ".pf-m-truncate" and sets "--pf-v6-c-notification-drawer__list-item-header-title--max-lines: 2" to limit title to two lines and truncate any overflow text with ellipses.</div> |
| 2426 |
<div |
| 2427 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 2428 |
>50 minutes ago</div> |
| 2429 |
</li> |
| 2430 |
<li |
| 2431 |
class="pf-v6-c-notification-drawer__list-item pf-m-read pf-m-success" |
| 2432 |
> |
| 2433 |
<div class="pf-v6-c-notification-drawer__list-item-header"> |
| 2434 |
<span class="pf-v6-c-notification-drawer__list-item-header-icon"> |
| 2435 |
<svg |
| 2436 |
class="pf-v6-svg" |
| 2437 |
fill="currentColor" |
| 2438 |
viewBox="0 0 32 32" |
| 2439 |
aria-hidden="true" |
| 2440 |
role="img" |
| 2441 |
width="1em" |
| 2442 |
height="1em" |
| 2443 |
> |
| 2444 |
<path |
| 2445 |
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z" |
| 2446 |
/> |
| 2447 |
</svg> |
| 2448 |
</span> |
| 2449 |
<h2 class="pf-v6-c-notification-drawer__list-item-header-title"> |
| 2450 |
<span class="pf-v6-screen-reader">Success notification:</span> |
| 2451 |
Notification drawer item title |
| 2452 |
</h2> |
| 2453 |
</div> |
| 2454 |
<div |
| 2455 |
class="pf-v6-c-notification-drawer__list-item-action pf-m-no-offset" |
| 2456 |
> |
| 2457 |
<button class="pf-v6-c-button pf-m-primary" type="button"> |
| 2458 |
<span class="pf-v6-c-button__text">Action</span> |
| 2459 |
</button> |
| 2460 |
</div> |
| 2461 |
<div |
| 2462 |
class="pf-v6-c-notification-drawer__list-item-description" |
| 2463 |
>This example uses ".pf-m-no-offset" on the action wrapper to disable the default offset for button alignment.</div> |
| 2464 |
<div |
| 2465 |
class="pf-v6-c-notification-drawer__list-item-timestamp" |
| 2466 |
>55 minutes ago</div> |
| 2467 |
</li> |
| 2468 |
</ul> |
| 2469 |
</section> |
| 2470 |
</div> |
| 2471 |
</div> |
| 2472 |
</div> |
| 2473 |
|
| 2474 |
``` |
| 2475 |
|
| 2476 |
### Accessibility |
| 2477 |
|
| 2478 |
| Attribute | Applied to | Outcome | |
| 2479 |
| -- | -- | -- | |
| 2480 |
| `aria-expanded="false"` | `.pf-v6-c-notification-drawer__group-toggle` | Indicates that the group notification list is hidden. | |
| 2481 |
| `aria-expanded="true"` | `.pf-v6-c-notification-drawer__group-toggle` | Indicates that the group notification list is visible. | |
| 2482 |
| `hidden` | `.pf-v6-c-notification-drawer__list` | Indicates that the group notification list is hidden so that it isn't visible in the UI and isn't accessed by assistive technologies. | |
| 2483 |
| `tabindex="0"` | `.pf-v6-c-notification-drawer__list-item.pf-m-hoverable` | Inserts the hoverable list item into the tab order of the page so that it is focusable. | |
| 2484 |
| `aria-hidden="true"` | `.pf-v6-c-notification-drawer__group-toggle-icon > *`, `.pf-v6-c-notification-drawer__list-item-header-icon > *` | Hides icon for assistive technologies. | |
| 2485 |
|
| 2486 |
### Usage |
| 2487 |
|
| 2488 |
| Class | Applied to | Outcome | |
| 2489 |
| -- | -- | -- | |
| 2490 |
| `.pf-v6-c-notification-drawer` | `<div>` | Initiates the notification drawer. **Required** | |
| 2491 |
| `.pf-v6-c-notification-drawer__header` | `<div>` | Initiates the notification drawer header. **Required** | |
| 2492 |
| `.pf-v6-c-notification-drawer__header-title` | `<h1>` | Initiates the notification drawer header title. **Required** | |
| 2493 |
| `.pf-v6-c-notification-drawer__header-status` | `<span>` | Initiates the notification drawer header status. | |
| 2494 |
| `.pf-v6-c-notification-drawer__header-action` | `<div>` | Initiates the notification drawer header action. | |
| 2495 |
| `.pf-v6-c-notification-drawer__header-action-close` | `<div>` | Initiates the notification drawer header action button. | |
| 2496 |
| `.pf-v6-c-notification-drawer__body` | `<div>` | Initiates the notification drawer body. **Required** | |
| 2497 |
| `.pf-v6-c-notification-drawer__list` | `<ul>` | Initiates a notification list. **Required** | |
| 2498 |
| `.pf-v6-c-notification-drawer__list-item` | `<li>` | Initiates a notification list item. Always use with a state modifier class. **Required** | |
| 2499 |
| `.pf-v6-c-notification-drawer__list-item-header` | `<div>` | Initiates a notification list item header. **Required** | |
| 2500 |
| `.pf-v6-c-notification-drawer__list-item-header-icon` | `<span>` | Initiates a notification list item header icon. **Required** | |
| 2501 |
| `.pf-v6-c-notification-drawer__list-item-header-title` | `<h2>` | Initiates a notification list item header title. **Required** | |
| 2502 |
| `.pf-v6-c-notification-drawer__list-item-action` | `<div>` | Initiates a notification list item action. | |
| 2503 |
| `.pf-v6-c-notification-drawer__list-item-description` | `<div>` | Initiates a notification list item description. **Required** | |
| 2504 |
| `.pf-v6-c-notification-drawer__list-item-timestamp` | `<div>` | Initiates a notification list item timestamp. **Required** | |
| 2505 |
| `.pf-v6-c-notification-drawer__group-list` | `<div>` | Initiates a notification group list. **Required when notifications are grouped** | |
| 2506 |
| `.pf-v6-c-notification-drawer__group` | `<section>` | Initiates a notification group. **Required** | |
| 2507 |
| `.pf-v6-c-notification-drawer__group-toggle` | `<button>` | Initiates a notification group toggle. **Required** | |
| 2508 |
| `.pf-v6-c-notification-drawer__group-title` | `<div>` | Initiates a notification group toggle title. **Required** | |
| 2509 |
| `.pf-v6-c-notification-drawer__group-count` | `<div>` | Initiates a notification group toggle count. | |
| 2510 |
| `.pf-v6-c-notification-drawer__group-icon` | `<span>` | Initiates a notification group toggle icon. **Required** | |
| 2511 |
| `.pf-m-custom` | `.pf-v6-c-notification-drawer__list-item` | Modifies a notification list item for the custom state. | |
| 2512 |
| `.pf-m-info` | `.pf-v6-c-notification-drawer__list-item` | Modifies a notification list item for the info state. | |
| 2513 |
| `.pf-m-warning` | `.pf-v6-c-notification-drawer__list-item` | Modifies a notification list item for the warning state. | |
| 2514 |
| `.pf-m-danger` | `.pf-v6-c-notification-drawer__list-item` | Modifies a notification list item for the danger state. | |
| 2515 |
| `.pf-m-success` | `.pf-v6-c-notification-drawer__list-item` | Modifies a notification list item for the success state. | |
| 2516 |
| `.pf-m-read` | `.pf-v6-c-notification-drawer__list-item` | Modifies a notification list item for the read state. | |
| 2517 |
| `.pf-m-hoverable` | `.pf-v6-c-notification-drawer__list-item` | Modifies a notification list item hover states to inidicate it is clickable. | |
| 2518 |
| `.pf-m-expanded` | `.pf-v6-c-notification-drawer__group` | Modifies a notification group for the expanded state. | |
| 2519 |
| `.pf-m-truncate` | `.pf-v6-c-notification-drawer__list-item-header-title` | Modifies the title to display a single line and truncate any overflow text with ellipses. **Note:** you can specify the max number of lines to show by setting the `--pf-v6-c-notification-drawer__list-item-header-title--max-lines` (the default value is `1`). | |
| 2520 |
| `.pf-m-no-offset` | `.pf-v6-c-notification-drawer__list-item-action` | Modifies a notification item action to remove the vertical offset for action alignment. | |