Broadcast message banner has wrong text foreground color since 15.7.0
Summary
Since v15.7.0, broadcast messages appear to have inverted text foreground color - dark gray text on a medium-dark colored background. When switching to dark mode, the text foreground is corrected. This occurs on all "light" themes.
Tried another browser (Firefox on mobile), issue is visible there too.
Issue persisted after reboot, with all messages since the upgrade, including newly-created ones.
Steps to reproduce
- Have GitLab instance running on self-hosted (Ubuntu 22.04, environment info below), version 15.6.2-ee
- Set broadcast message stating server will be down for maintenance
- Upgrade GitLab to version 15.7.0-ee
- Check back after finish, broadcast message (and all future messages) will use wrong foreground in light themes
Example Project
Not specific to projects, but server-wide admin broadcast messages.
What is the current bug behavior?
When using light mode, any server broadcast messages have dark gray text on medium/dark color background, making the text very difficult to read.
What is the expected correct behavior?
When using any mode, all server broadcast messages have light gray/white text on medium/dark color background, making the text easy to read.
Relevant logs and/or screenshots
Screenshots:
In gitlab.rb, I have gitlab_default_theme set to 4 (blue), though the user-specified theme in the first screenshot is green.
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Ubuntu 22.04 Proxy: no Current User: git Using RVM: no Ruby Version: 2.7.7p221 Gem Version: 3.1.6 Bundler Version:2.3.15 Rake Version: 13.0.6 Redis Version: 6.2.7 Sidekiq Version:6.5.7 Go Version: unknown GitLab information Version: 15.7.0-ee Revision: bbf6efd2bed Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 12.12 URL: https://[REDACTED].com HTTP Clone URL: https://[REDACTED].com/some-group/some-project.git SSH Clone URL: ssh://git@[REDACTED].com:[REDACTED]/some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: no Using Omniauth: no GitLab Shell Version: 14.14.0 Repository storages: - default: unix:/var/opt/gitlab/gitaly/gitaly.socket GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ... Checking GitLab Shell ... GitLab Shell: ... GitLab Shell version >= 14.14.0 ? ... OK (14.14.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: OK gitlab-shell self-check successful Checking GitLab Shell ... Finished Checking Gitaly ... Gitaly: ... default ... OK Checking Gitaly ... Finished Checking Sidekiq ... Sidekiq: ... Running? ... yes Number of Sidekiq processes (cluster/worker) ... 1/1 Checking Sidekiq ... Finished Checking Incoming Email ... Incoming Email: ... Checking Reply by email ... IMAP server credentials are correct? ... Checking [REDACTED] yes Mailroom enabled? ... skipped MailRoom running? ... skipped Checking Reply by email ... Finished Checking Incoming Email ... Finished Checking LDAP ... LDAP: ... LDAP is disabled in config/gitlab.yml Checking LDAP ... Finished Checking GitLab App ... Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Cable config exists? ... yes Resque config exists? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Systemd unit files or init script exist? ... skipped (omnibus-gitlab has neither init script nor systemd units) Systemd unit files or init script up-to-date? ... skipped (omnibus-gitlab has neither init script nor systemd units) Projects have namespace: ... 2/1 ... yes 3/4 ... yes 3/5 ... yes 3/6 ... yes 3/8 ... yes 4/9 ... yes 4/12 ... yes 3/13 ... yes Redis version >= 6.0.0? ... yes Ruby version >= 2.7.2 ? ... yes (2.7.7) Git user has default SSH configuration? ... yes Active users: ... 6 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... yes Elasticsearch version 7.x-8.x or OpenSearch version 1.x ... skipped (Advanced Search is disabled) Checking GitLab App ... Finished Checking GitLab subtasks ... Finished
Possible fixes
Only workaround I know is to use the light gray banner as it has much better contrast with dark foreground colors:
I couldn't find this issue reported by anyone else, and 15.7 was almost a week ago, so I suspect there may be something environment-specific causing this.


