-<div class="notification-header">
- <div class="notification-header__top">
- <div class="notification-header__title">
- <cds-text i18n>Tasks and Notifications</cds-text>
+<div cdsGrid
+ class="notification-header"
+ [useCssGrid]="true"
+ [fullWidth]="true">
+ <div cdsCol
+ [columnNumbers]="{sm: 8, md: 8, lg: 16}">
+ <div cdsRow>
+ <div cdsGrid
+ [useCssGrid]="true"
+ [fullWidth]="true">
+ <cds-text
+ [columnNumbers]="{sm: 8, md: 8, lg: 11}"
+ i18n
+ cdsCol
+ class="notification-header__title">Tasks and Notifications</cds-text>
+ <button
+ cdsCol
+ [columnNumbers]="{sm: 8, md: 8, lg: 5}"
+ class="notification-header__dismiss-btn"
+ i18n
+ cdsButton="ghost"
+ size="sm"
+ (click)="onDismissAll()">
+ Dismiss all
+ </button>
+ </div>
</div>
-
- <button
- i18n
- cdsButton="ghost"
- size="sm"
- (click)="onDismissAll()"
- class="notification-header__dismiss-btn">
- Dismiss all
- </button>
- </div>
-
- <div class="notification-header__toggle">
<cds-toggle
+ cdsRow
[checked]="isMuted"
size="sm"
(checkedChange)="onToggleMute()"
hideLabel="true"> <!--hides the toggle state values (like "On/Off" in the toggle button)-->
</cds-toggle>
</div>
-</div>
+</div>
\ No newline at end of file
@use '@carbon/styles/scss/theme';
.notification-header {
- display: flex;
- flex-direction: column;
- padding: spacing.$spacing-04;
- border-bottom: 1px solid theme.$border-subtle-01;
- background-color: theme.$layer-01;
- flex-shrink: 0;
+ position: sticky;
+ z-index: 2;
+ padding: spacing.$spacing-03 spacing.$spacing-05;
+ background-color: theme.$layer-01;
+ border-block-end: 1px solid theme.$border-subtle-01;
+ inset-block-start: 0;
- &__top {
- display: flex;
- justify-content: space-between;
- align-items: center;
- width: 100%;
- margin-bottom: spacing.$spacing-03;
- }
&__title {
- h4 {
- @include type.type-style('heading-compact-01');
-
- color: theme.$text-primary;
- margin: 0;
- }
+ @include type.type-style('heading-compact-01');
+ margin-top: 0.4rem;
}
&__dismiss-btn {
color: theme.$text-primary;
-
- &:hover {
- color: theme.$link-primary;
- }
}
- &__toggle {
- cds-toggle {
- margin: 0;
-
- ::ng-deep {
- .cds--toggle__label-text {
- color: theme.$text-primary;
- }
-
- .cds--toggle__label {
- color: theme.$text-primary;
- }
-
- .cds--toggle__text {
- color: theme.$text-primary;
- }
- }
- }
- }
}