Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion apps/nuxt/src/assets/scss/dsfr/_icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ $icons-list: (
// Business icons
mail-line,
briefcase-line,
links-line,
// Editor icons
link,
// Finance icons
money-euro-circle-line,
// user icons
Expand Down
8 changes: 4 additions & 4 deletions apps/nuxt/src/components/element/TeeCopyLinkButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@
:size="size"
:tertiary="tertiary"
:no-outline="noOutline"
class="fr-radius-a--2v"
class="fr-radius-a--2v fr-text--black fr-px-4v"
:class="`${linkCopied ? copyClass : ''} ${textClass}`"
icon="fr-icon-link"
icon="fr-icon-links-line"
@click="copyUrl"
/>
</template>
<script setup lang="ts">
interface Props {
size?: 'sm' | 'md' | 'lg'
noOutline?: boolean
noOutline: boolean
tertiary?: boolean
copyClass?: string
textClass?: string
}
withDefaults(defineProps<Props>(), {
size: 'sm',
noOutline: false,
tertiary: false,
tertiary: true,
copyClass: 'fr-bg--green',
textClass: ''
})
Expand Down
5 changes: 4 additions & 1 deletion apps/nuxt/src/components/project/details/ProjectDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
/>
</template>
<template #sidemenu>
<TeeCopyLinkButton class="fr-mt-6v" />
<TeeCopyLinkButton
class="fr-mt-6v"
no-outline
/>
<ProjectSideNav :project="project" />
</template>
<div id="externalLinksTracking">
Expand Down
12 changes: 10 additions & 2 deletions apps/nuxt/src/components/project/details/ProjectSideNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
v-for="item in menuItems"
:key="item.id"
:href="`#${item.to}`"
class="fr-sidemenu__link"
class="fr-sidemenu__link fr-pl-4v"
:class="[item.class ? item.class : '', item.icon ? 'fr-btn--icon-left ' + item.icon : '']"
@click.prevent="scrollTo(item.to)"
>
{{ item.text }}
Expand Down Expand Up @@ -58,7 +59,14 @@ const allMenuItems = computed(() => [
condition: props.project.moreDescription.length > 0
},
{ id: 'aids', to: `project-aids-title`, text: 'Mes aides', condition: props.project.programs.length > 0 || isDataFull.value },
{ id: 'contact', to: `form-title`, text: 'Contact', condition: props.project.programs.length > 0 || isDataFull.value },
{
id: 'contact',
to: `form-title`,
text: 'Contact',
condition: props.project.programs.length > 0 || isDataFull.value,
class: 'fr-btn fr-radius-a--2v fr-text--white',
icon: 'fr-icon-mail-line'
},
{
id: 'linked-testimonies',
to: `project-testimonies-title`,
Expand Down
Loading