Skip to content

Commit

Permalink
feat: ⬆️ utilise DSFR 1.13
Browse files Browse the repository at this point in the history
- met à jour DSFR vers la version 1.13
- corrige le composant infobulle pour un fonctionnement correct avec la 1.13
  • Loading branch information
laruiss committed Feb 7, 2025
1 parent 8f65110 commit 42ee9a8
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 808 deletions.
11 changes: 11 additions & 0 deletions demo-app/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.flex {
display: flex;
}

.justify-center {
justify-content: center;
}

.items-center {
align-items: center;
}
2 changes: 2 additions & 0 deletions demo-app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import '@gouvfr/dsfr/dist/utility/utility.main.min.css'

import '@gouvfr/dsfr/dist/utility/icons/icons.main.min.css'

import './main.css'

createApp(App)
.use(router)
.use(VueDsfr)
Expand Down
16 changes: 9 additions & 7 deletions demo-app/views/AppHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,26 +167,28 @@ const rows = [
</DsfrTooltip>
</template>
<template v-else>
<DsfrTooltip
:content="`(${colKey})`"
on-hover
>
<div class="flex items-center">
{{ cell }}
</DsfrTooltip>
<DsfrTooltip
:content="`(${colKey})`"
href="#"
/>
</div>
</template>
</template>
</DsfrDataTable>
</div>

<div class="flex justify-between w-full relative">
<div class="flex justify-between items-center gap-2 w-full relative">
<DsfrTooltip
on-hover
content="Texte de l’info-bulle qui apparaît au survol"
>
Au survol
</DsfrTooltip>

Et au clic avec une icône seulement :
<span>Et au clic avec une icône seulement :</span>

<DsfrTooltip
content="Texte de l’info-bulle qui apparaît au clic"
/>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"vue-router": "^4.5.0"
},
"dependencies": {
"@gouvfr/dsfr": "~1.12.1",
"@gouvfr/dsfr": "~1.13.0",
"focus-trap": "^7.6.4",
"focus-trap-vue": "^4.0.3",
"vue": "^3.5.13",
Expand Down
Loading

0 comments on commit 42ee9a8

Please # to comment.