-
Notifications
You must be signed in to change notification settings - Fork 43
Améliore la réutilisabilité des templates d'emails #4966
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
base: main
Are you sure you want to change the base?
Conversation
5397c1f to
736b4f4
Compare
| @@ -0,0 +1 @@ | |||
| ctaBackgroundColor: "#2aa28bff" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ici, la couleur par défaut n'est pas la bonne
| ctaBackgroundColor: "#2aa28bff" | |
| ctaBackgroundColor: "#5770be" |
| install: (app) => { | ||
| const styleElement = document.createElement("style") | ||
| styleElement.textContent = DefaultDsfr | ||
| styleElement.textContent = options[0].value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
À mes yeux c'est plus clair de laisser le code précédent ici (utilisation explicite du thème par défaut et évite une dépendance implicite du tableau options). Il faudrait probablement faire des modifications pour permettre un thème par défaut paramétrable via une variable defaultTheme)
| styleElement.textContent = options[0].value | |
| styleElement.textContent = DefaultDsfr |
|
|
||
| app.config.globalProperties.$theme = { | ||
| current: Theme.Default, | ||
| current: options[0].label, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dans la continuité du précédent commentaire
| current: options[0].label, | |
| current: Theme.Default, |
PR empilée sur la précédente #4965