-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Déplace la checkmark pour indiquer qu'une étape est terminée (#630)
* move checkmark for finished step * remove old aria-hidden attr * update changelog
- Loading branch information
1 parent
eec4933
commit 7d8e886
Showing
5 changed files
with
101 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,16 @@ | ||
<script setup lang="ts"> | ||
defineProps<{ | ||
checked?: boolean; | ||
id: string; | ||
}>(); | ||
</script> | ||
|
||
<template> | ||
<li class="step-card-wrapper"> | ||
<span | ||
:id="id" | ||
:class="[ | ||
'fr-icon--lg fr-icon-checkbox-circle-fill step-card-check', | ||
{ 'step-card-check--success': checked } | ||
]" | ||
aria-hidden="true" | ||
> | ||
<span class="sr-only">{{ | ||
checked ? "Étape terminée" : "Étape à réaliser" | ||
}}</span> | ||
</span> | ||
|
||
<div class="fr-px-4w fr-py-3w step-card"> | ||
<slot /> | ||
</div> | ||
<li class="fr-px-4w fr-py-3w step-card"> | ||
<slot /> | ||
</li> | ||
</template> | ||
|
||
<style scoped> | ||
.step-card-wrapper { | ||
display: flex; | ||
gap: 1.5rem; | ||
align-items: center; | ||
max-width: 49.5rem; | ||
} | ||
.step-card { | ||
border: 1px solid var(--border-default-grey); | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
gap: 0 1rem; | ||
flex-grow: 1; | ||
} | ||
.step-card-check { | ||
color: var(--border-default-grey); | ||
margin: 0 auto; | ||
} | ||
.step-card-check--success { | ||
color: var(--text-default-success); | ||
} | ||
@media (max-width: 48rem) { | ||
.step-card-wrapper { | ||
flex-direction: column; | ||
align-items: stretch; | ||
gap: 1rem; | ||
} | ||
max-width: 49.5rem; | ||
} | ||
</style> |