From 345af3b6c7c714ed25f2dd3072251e9c1ddd871a Mon Sep 17 00:00:00 2001 From: Dishan Sivakumaran <55233123+dsiscout@users.noreply.github.com> Date: Thu, 14 Sep 2023 06:15:01 +0200 Subject: [PATCH] fix(account-selection): use font color as color for labels (#6518) fix(account-selection): #5505 use font color as color for labels --- internal/admin/repository/eventsourcing/handler/styling.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/admin/repository/eventsourcing/handler/styling.go b/internal/admin/repository/eventsourcing/handler/styling.go index 8d5107e788..ed96aa4633 100644 --- a/internal/admin/repository/eventsourcing/handler/styling.go +++ b/internal/admin/repository/eventsourcing/handler/styling.go @@ -207,6 +207,7 @@ func (m *Styling) writeFile(policy *iam_model.LabelPolicyView) (io.Reader, int64 } } if policy.FontColor != "" { + cssContent += fmt.Sprintf("--zitadel-color-label: %s;", policy.FontColor) palette := m.generateColorPaletteRGBA255(policy.FontColor) for i, color := range palette { cssContent += fmt.Sprintf("--zitadel-color-text-%v: %s;", i, color) @@ -242,6 +243,7 @@ func (m *Styling) writeFile(policy *iam_model.LabelPolicyView) (io.Reader, int64 } } if policy.FontColorDark != "" { + cssContent += fmt.Sprintf("--zitadel-color-label: %s;", policy.FontColorDark) palette := m.generateColorPaletteRGBA255(policy.FontColorDark) for i, color := range palette { cssContent += fmt.Sprintf("--zitadel-color-text-%v: %s;", i, color)