Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajoute infos "en savoir plus" pour les charges locatives #4495

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

Shamzic
Copy link
Contributor

@Shamzic Shamzic commented Jul 29, 2024

No description provided.

@Shamzic Shamzic linked an issue Jul 29, 2024 that may be closed by this pull request
2 tasks
@github-actions github-actions bot added this to the BC actuel milestone Jul 29, 2024
src/lib/hint.ts Outdated
@@ -17,6 +17,16 @@ const texts = {
Vous pouvez trouver des missions sur <a href="https://www.1jeune1solution.gouv.fr/service-civique" target="_blank">la page dédié du site 1jeune1solution.gouv.fr</a>.
`
},
loyer: (): string => {
return `
<h5>Que sont les charges locatives ?</h5>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je trouve ta structure HTML particulière, deux h5 et pas de paragraphe ou d'autres types de balises de texte.

Copy link
Contributor Author

@Shamzic Shamzic Jul 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est inclu dans une balise p v-html.

J'ai mis des h5 pour le style proposé par le DSFR. Ça pose problème qu'il y en ait deux ?
Qu'est-ce que tu proposes?

Copy link
Contributor Author

@Shamzic Shamzic Jul 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je peux refacto les autres contenus textuels des hint en ajoutant des balises p car elles n'en avaient pas à l'origine et remplacer la balise <p v-html> par une balise <span v-html>

Copy link
Contributor

@jenovateurs jenovateurs Aug 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pour moi ça doit être un h3

image

Pour <p v-html>, je pense qu'il vaut mieux <div v-html="text"/>

Copy link
Contributor

@jenovateurs jenovateurs Aug 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Et de passer le reste en mode balise <p>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, le problème que j'avais était esthétique car le style du DSFR par défaut sur les h3 n'était pas adapté mais en ajoutant la class fr-text--lg ça passe mieux.

J'ai modifié selon tes suggestions.

@Shamzic Shamzic force-pushed the 4429-expliquer-ce-que-sont-les-charges-locatives branch from e49894c to d0f6679 Compare August 2, 2024 14:37
Copy link
Contributor

@jenovateurs jenovateurs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parfait, merci @Shamzic pour les modifications.

@Shamzic Shamzic merged commit 2a48fcd into main Aug 2, 2024
24 checks passed
@Shamzic Shamzic deleted the 4429-expliquer-ce-que-sont-les-charges-locatives branch August 2, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expliquer ce que sont les charges locatives
2 participants