Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Fix size and position of header notification badge icon (#4778)
Browse files Browse the repository at this point in the history
* Fix size and position of header notification badge icon

* Ensure override also applies to dark mode
- dark mode brings back in i think specific overrides by material design
- ensure our overrides are more specific
- flicking between light/dark mode now shows no difference

Co-authored-by: Richard Cox <[email protected]>
  • Loading branch information
nwmac and richard-cox committed Nov 23, 2020
1 parent 83e81e4 commit 1a23fea
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/frontend/packages/core/sass/mat-desktop.scss
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ $desktop-toggle-button-item-height: $desktop-menu-item-height - 2px;
width: 20px;
}

.page-header__notification-button .mat-badge-medium.mat-badge-overlap .mat-badge-content {
height: 18px;
line-height: 18px;
right: -8px;
top: -8px;
width: 18px;
}
}

.dashboard .dashboard__inner {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ $bottom-index: $top-index - 1;
height: 20vh;
}
&__divider {
cursor: default;
opacity: .3;
padding: 0 10px 0 5px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@
color: $underflow-foreground;
}
&__divider {
color: mat-contrast($primary, 500);
@if $header-border and $header-border != 'none' {
color: $header-border;
} @else {
color: mat-contrast($primary, 500);
}
}
&__menu-icon {
background-color: mat-contrast($primary, 500);
Expand Down

0 comments on commit 1a23fea

Please sign in to comment.