Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/assets/svg/icon-feedback.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 9 additions & 2 deletions src/scss/components/footer/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
font-weight: 600;
margin-top: auto;

a {
a:not([class]) {
color: currentColor;
&:hover {
color: $color-blue-30;
Expand Down Expand Up @@ -45,7 +45,7 @@
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 2rem;
gap: 1rem;
> :first-child {
margin-inline-end: auto;
}
Expand Down Expand Up @@ -99,3 +99,10 @@
display: flex;
gap: 18px;
}

.iati-footer__actions {
display: flex;
gap: 1rem;
justify-content: flex-end;
align-items: flex-start;
}
8 changes: 7 additions & 1 deletion src/scss/components/footer/footer.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,13 @@ const legalSectionHtml = html`
${legalNavItems.map((i) => html`<li>${i}</li>`)}
</ul>
</nav>
${CountrySwitcher.render?.call({})}
<div class="iati-footer__actions">
${CountrySwitcher.render?.call({})}
<a href="#" class="iati-button iati-button--light hide--mobile-nav">
<span>Feedback</span>
<i class="iati-icon iati-icon--feedback"></i>
</a>
</div>
<div class="iati-footer__social">
<a
href="https://www.linkedin.com/company/international-aid-transparency-initiative/"
Expand Down
18 changes: 15 additions & 3 deletions src/scss/components/header/header.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,13 @@ export const Header: Story = {
<div class="iati-header__actions">
${CountrySwitcher.render?.call({ ...args })}
<button class="iati-button iati-button--light hide--mobile-nav">
<span>Feedback</span>
<i class="iati-icon iati-icon--feedback"></i>
</button>
<a href="#" class="iati-button iati-button--light hide--mobile-nav">
<span>Help Docs</span>
<i class="iati-icon iati-icon--info"></i>
</button>
</a>
<button class="iati-button iati-button--light">
<span>Search</span>
<i class="iati-icon iati-icon--search"></i>
Expand Down Expand Up @@ -126,12 +130,20 @@ export const CompactHeader: Story = {
<div class="iati-header__main-row">
<div class="iati-header__actions">
${CompactCountrySwitcher.render?.call({ ...args })}
<button
<a
class="iati-button iati-button--light iati-button--compact hide--mobile-nav"
href="#"
>
<span>Feedback</span>
<i class="iati-icon iati-icon--feedback"></i>
</a>
<a
class="iati-button iati-button--light iati-button--compact hide--mobile-nav"
href="#"
>
<span>Help Docs</span>
<i class="iati-icon iati-icon--info"></i>
</button>
</a>
<button
class="iati-button iati-button--light iati-button--compact"
>
Expand Down
5 changes: 5 additions & 0 deletions src/scss/components/icon/_icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
background-image: url("@assets/svg/icon-info.svg");
}

&--feedback {
background-image: url("@assets/svg/icon-feedback.svg");
background-size: 120%;
}

&--search {
background-image: url("@assets/svg/icon-search.svg");
}
Expand Down
Loading