Skip to content

Commit 6e45777

Browse files
committed
docs: patch port of #45376 (#45473)
PR Close #45473
1 parent 70006da commit 6e45777

File tree

3 files changed

+22
-7
lines changed

3 files changed

+22
-7
lines changed

aio/src/app/app.component.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,18 @@
1111
<header>
1212
<mat-toolbar color="primary" class="app-toolbar no-print" [class.transitioning]="isTransitioning">
1313
<mat-toolbar-row class="notification-container">
14-
<aio-notification notificationId="survey-january-2022" expirationDate="2022-02-01" [dismissOnContentClick]="true" (dismissed)="notificationDismissed()">
15-
<a href="https://stateofjs.com">
16-
<mat-icon class="icon" svgIcon="insert_comment" aria-label="Announcement"></mat-icon>
17-
<span class="message">Share your experience with Angular in <b>The State of JavaScript</b></span>
18-
<span class="action-button">Go to survey</span>
14+
<aio-notification notificationId="war-ukraine" expirationDate="null" [dismissOnContentClick]="false" (dismissed)="notificationDismissed()">
15+
<a class="link" target="_blank" rel="noopener" href="https://www.google.org/ukraine-relief/">
16+
<span class="title">Support Ukraine</span>
17+
<mat-icon class="icon" aria-label="Ukraine flag">
18+
<svg height="24" width="24" version="1.1" viewBox="0 0 240 240" xmlns="http://www.w3.org/2000/svg">
19+
<rect fill="#0057b7" height="72" width="240" x="0" y="48"/>
20+
<rect fill="#ffd700" height="72" width="240" x="0" y="120"/>
21+
</svg>
22+
</mat-icon>
23+
<span class="message">Help Provide Humanitarian Aid to Ukraine.</span>
1924
</a>
2025
</aio-notification>
21-
</mat-toolbar-row>
2226
<mat-toolbar-row>
2327
<button mat-button class="hamburger" [class.no-animations]="disableAnimations" (click)="sidenav.toggle()" title="Docs menu">
2428
<mat-icon svgIcon="menu"></mat-icon>

aio/src/styles/2-modules/notification/_notification.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@use '../../mixins';
2+
@use '../../constants';
23

34
$notificationHeight: 56px;
45

@@ -39,8 +40,17 @@ aio-notification {
3940
width: 100%;
4041
}
4142

43+
.title {
44+
margin-right: 10px;
45+
}
46+
47+
.link {
48+
text-transform: none;
49+
}
50+
4251
.icon {
4352
margin-right: 10px;
53+
4454
@media (max-width: 464px) {
4555
display: none;
4656
}
@@ -49,6 +59,7 @@ aio-notification {
4959
.message {
5060
overflow: auto;
5161
margin-right: 10px;
62+
color: constants.$powderblue;
5263
}
5364

5465
.action-button {

goldens/size-tracking/aio-payloads.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"master": {
1616
"uncompressed": {
1717
"runtime": 4343,
18-
"main": 450121,
18+
"main": 450969,
1919
"polyfills": 37410,
2020
"styles": 70515,
2121
"light-theme": 77708,

0 commit comments

Comments
 (0)