Skip to content

Commit

Permalink
feat(certif): Change SCO PixBanner to PixNotification
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiaPena committed Dec 17, 2024
1 parent b5482e9 commit 512071c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
6 changes: 4 additions & 2 deletions certif/app/components/layout/banners.gjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import PixBannerAlert from '@1024pix/pix-ui/components/pix-banner-alert';
import PixIcon from '@1024pix/pix-ui/components/pix-icon';
import PixNotificationAlert from '@1024pix/pix-ui/components/pix-notification-alert';
import { action } from '@ember/object';
import { service } from '@ember/service';
import Component from '@glimmer/component';
Expand Down Expand Up @@ -36,9 +38,9 @@ export default class Banners extends Component {

<template>
{{#if this.shouldDisplaySCOInformationBanner}}
<PixBannerAlert @canCloseBanner='true' class='banners'>
<PixNotificationAlert @type='information' @withIcon={{true}} class='banners'>
{{t 'pages.sco.banner.information' htmlSafe=true}}
</PixBannerAlert>
</PixNotificationAlert>
{{/if}}

{{#if this.shouldDisplayLocaleNotSupportedBanner}}
Expand Down
11 changes: 11 additions & 0 deletions certif/app/styles/components/layout/banners.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
.banners {
margin-bottom: var(--pix-spacing-6x);

a {
text-decoration: underline;
display: inline-flex;
align-items: center;

svg {
width: 1rem;
height: 1rem;
}
}
}

0 comments on commit 512071c

Please sign in to comment.