-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move notification banner back to top and add banner type capabi…
…lities (#359) * feat: add top aligned banner that does not block anything * style: update styling of app to allow for sticky banner/navbar * feat: remove scroll-to-id directive and use $anchorScroll * style: update MyInfo field tab styling * style: update form builder styling for mobile * feat: add function to process banner message encoding to display * style: add banner styling for the various types of banners * style: update styling for signin view to accommodate banner * style: correct link styling for banner * chore: add documentation and example to banner env vars * style: update avatar styling to center on iOS * fix: typo in banner component comment * style: add vendor prefixes to avatar-dropdown.css * style: remove section.content styling add add .page-container class * feat: add page-container class to all route htmls for correct styling * feat: add back overlay to trigger * feat: add id to banner component * feat: add dynamic padding to form header when banner is shown * feat: make retrieval of banner type more forgiving Co-authored-by: shuli-ogp <[email protected]> * style: fix wrong paddings on myinfo disabled overlay in add fields * style: update add myinfo field padding to be back to original style Co-authored-by: shuli-ogp <[email protected]>
- Loading branch information
Showing
28 changed files
with
1,115 additions
and
618 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
<div class="banner-container" ng-if="!vm.bannerHidden"> | ||
<div | ||
id="notification-banner" | ||
class="banner-container banner-container-{{vm.bannerType}}" | ||
ng-if="!vm.bannerHidden" | ||
> | ||
<div> | ||
<span ng-bind-html="vm.message"></span> | ||
<span ng-bind-html="vm.bannerMessage"></span> | ||
</div> | ||
<div id="dismiss" ng-click="vm.dismissBanner()"> | ||
<div | ||
ng-if="vm.bannerType === vm.BANNER_TYPES.info" | ||
id="dismiss" | ||
ng-click="vm.dismissBanner()" | ||
> | ||
<i class="bx bx-x bx-md"></i> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
/* | ||
* Prefixed by https://autoprefixer.github.io | ||
* PostCSS: v7.0.29, | ||
* Autoprefixer: v9.7.6 | ||
* Browsers: last 4 version | ||
*/ | ||
|
||
/* BANNER COMPONENT */ | ||
|
||
banner-component { | ||
-webkit-box-flex: 0; | ||
-ms-flex: 0 1 auto; | ||
flex: 0 1 auto; | ||
} | ||
|
||
.banner-container { | ||
position: sticky; | ||
top: 0; | ||
display: -webkit-box; | ||
display: -ms-flexbox; | ||
display: flex; | ||
padding: 12px 20px; | ||
-webkit-box-align: center; | ||
-ms-flex-align: center; | ||
align-items: center; | ||
-webkit-box-pack: center; | ||
-ms-flex-pack: center; | ||
justify-content: center; | ||
line-height: 20px; | ||
font-weight: normal; | ||
overflow: hidden; | ||
font-size: 16px; | ||
z-index: 999; | ||
width: 100%; | ||
} | ||
|
||
.banner-container-info { | ||
/* Additional padding as opposed to the rest to accomodate dismiss button */ | ||
padding: 12px 50px 12px 20px; | ||
background-color: #1e3e84; | ||
color: #f0f4f6; | ||
} | ||
|
||
.banner-container-info a { | ||
color: #f0f4f6; | ||
} | ||
|
||
.banner-container a { | ||
text-decoration: underline; | ||
cursor: pointer; | ||
font-weight: normal; | ||
} | ||
|
||
.banner-container-warn { | ||
background-color: #ffe47a; | ||
color: #323232; | ||
} | ||
|
||
.banner-container-warn a { | ||
color: #323232; | ||
} | ||
|
||
.banner-container-error { | ||
background-color: #a94442; | ||
color: #fff; | ||
} | ||
|
||
.banner-container-error a { | ||
color: #fff; | ||
} | ||
|
||
.banner-container div { | ||
display: inline-block; | ||
} | ||
|
||
.banner-container #dismiss { | ||
position: absolute; | ||
display: -webkit-box; | ||
display: -ms-flexbox; | ||
display: flex; | ||
-webkit-box-pack: center; | ||
-ms-flex-pack: center; | ||
justify-content: center; | ||
-webkit-box-align: center; | ||
-ms-flex-align: center; | ||
align-items: center; | ||
right: 0; | ||
top: 0; | ||
height: 100%; | ||
width: 50px; | ||
cursor: pointer; | ||
} |
Oops, something went wrong.