Skip to content

Commit

Permalink
fix: banner close icon
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanoshadjipetrou committed Jul 1, 2021
1 parent 1171775 commit 4e143aa
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions src/app/components/feedback/Banners/CovidBanner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import React, { SyntheticEvent, useState, useRef } from 'react';
import { css } from 'styled-components/macro';
import useCookie from '@devhammed/use-cookie';
import { useClickAway } from 'react-use';
import { IconChipDelete } from 'app/assets/icons/IconChipDelete';

const FontSize = '16px';

Expand Down Expand Up @@ -50,10 +51,12 @@ const NoticeButtonStyle = css`
top: 24px;
width: 24px;
height: 24px;
background-size: contain;
background-position: 50%;
background-repeat: no-repeat;
background-image: url('https://iatistandard.org/assets/svg/source/icon-cross-alert.1c4f6d9acbd3.svg');
> svg {
path:nth-of-type(2) {
fill: #2e2e2e;
}
}
`;

const ParagraphStyle = css`
Expand Down Expand Up @@ -153,9 +156,10 @@ export const CovidBanner = (props: CookieNoticeParams) => {
<p css={ParagraphStyle}>
<b>Notice:</b>
<br />
Please note that IATI.cloud does not contain data that is published in version 1 of the
Standard. IATI.cloud does contain datasets which do not fully conform
with the IATI Standard to make as much data available as possible.
Please note that IATI.cloud does not contain data that is
published in version 1 of the Standard. IATI.cloud does contain
datasets which do not fully conform with the IATI Standard to make
as much data available as possible.
</p>
</div>
<div
Expand All @@ -164,7 +168,9 @@ export const CovidBanner = (props: CookieNoticeParams) => {
css={NoticeButtonStyle}
data-cy="covid-banner-close-btn"
aria-label="Button to close the COVID-19 banner"
/>
>
<IconChipDelete />
</div>
</div>
</div>
)
Expand Down

0 comments on commit 4e143aa

Please sign in to comment.