Skip to content

Commit 52333fd

Browse files
authored
feat: update icon usage and styling in project menu components (#2097)
1 parent 0b561d3 commit 52333fd

File tree

5 files changed

+22
-9
lines changed

5 files changed

+22
-9
lines changed

apps/nuxt/src/assets/scss/dsfr/_icon.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ $icons-list: (
2020
// Business icons
2121
mail-line,
2222
briefcase-line,
23+
links-line,
2324
// Editor icons
24-
link,
2525
// Finance icons
2626
money-euro-circle-line,
2727
// user icons

apps/nuxt/src/components/element/TeeCopyLinkButton.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@
44
:size="size"
55
:tertiary="tertiary"
66
:no-outline="noOutline"
7-
class="fr-radius-a--2v"
7+
class="fr-radius-a--2v fr-px-4v"
88
:class="`${linkCopied ? copyClass : ''} ${textClass}`"
9-
icon="fr-icon-link"
9+
icon="fr-icon-links-line"
1010
@click="copyUrl"
1111
/>
1212
</template>
1313
<script setup lang="ts">
1414
interface Props {
1515
size?: 'sm' | 'md' | 'lg'
16-
noOutline?: boolean
16+
noOutline: boolean
1717
tertiary?: boolean
1818
copyClass?: string
1919
textClass?: string
2020
}
2121
withDefaults(defineProps<Props>(), {
2222
size: 'sm',
2323
noOutline: false,
24-
tertiary: false,
24+
tertiary: true,
2525
copyClass: 'fr-bg--green',
2626
textClass: ''
2727
})

apps/nuxt/src/components/project/details/ProjectDetail.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@
1111
/>
1212
</template>
1313
<template #sidemenu>
14-
<TeeCopyLinkButton class="fr-mt-6v" />
14+
<TeeCopyLinkButton
15+
class="fr-mt-6v"
16+
tertiary
17+
no-outline
18+
copy-class="fr-text--green"
19+
text-class="fr-text--black"
20+
/>
1521
<ProjectSideNav :project="project" />
1622
</template>
1723
<div id="externalLinksTracking">

apps/nuxt/src/components/project/details/ProjectPrograms.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
<p class="fr-mt-n3v fr-mb-0">{{ Translation.t('project.noPrograms.subtitle') }}</p>
6161
</TeeDsfrHighlight>
6262
<div
63-
v-if="isDataFull"
6463
id="project-contact"
6564
ref="teeProjectFormContainer"
6665
class="fr-bg--blue--lightness fr-grid-row fr-p-2w"

apps/nuxt/src/components/project/details/ProjectSideNav.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
v-for="item in menuItems"
88
:key="item.id"
99
:href="`#${item.to}`"
10-
class="fr-sidemenu__link"
10+
class="fr-pl-4v"
11+
:class="[item.class ? item.class : 'fr-sidemenu__link', item.icon ? 'fr-btn--icon-left ' + item.icon : '']"
1112
@click.prevent="scrollTo(item.to)"
1213
>
1314
{{ item.text }}
@@ -58,7 +59,14 @@ const allMenuItems = computed(() => [
5859
condition: props.project.moreDescription.length > 0
5960
},
6061
{ id: 'aids', to: `project-aids-title`, text: 'Mes aides', condition: props.project.programs.length > 0 || isDataFull.value },
61-
{ id: 'contact', to: `form-title`, text: 'Contact', condition: props.project.programs.length > 0 || isDataFull.value },
62+
{
63+
id: 'contact',
64+
to: `form-title`,
65+
text: 'Contact',
66+
condition: props.project.programs.length > 0 || isDataFull.value,
67+
class: 'fr-btn fr-radius-a--2v fr-text--white',
68+
icon: 'fr-icon-mail-line'
69+
},
6270
{
6371
id: 'linked-testimonies',
6472
to: `project-testimonies-title`,

0 commit comments

Comments
 (0)