Skip to content

Conversation

@guillett
Copy link
Contributor

@guillett guillett commented Jul 25, 2025

PR empilée sur la précédente #4965

@github-actions github-actions bot added this to the BC actuel milestone Jul 25, 2025
@@ -0,0 +1 @@
ctaBackgroundColor: "#2aa28bff"
Copy link
Collaborator

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

Suggested change
ctaBackgroundColor: "#2aa28bff"
ctaBackgroundColor: "#5770be"

install: (app) => {
const styleElement = document.createElement("style")
styleElement.textContent = DefaultDsfr
styleElement.textContent = options[0].value
Copy link
Collaborator

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)

Suggested change
styleElement.textContent = options[0].value
styleElement.textContent = DefaultDsfr


app.config.globalProperties.$theme = {
current: Theme.Default,
current: options[0].label,
Copy link
Collaborator

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

Suggested change
current: options[0].label,
current: Theme.Default,

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.

2 participants