Skip to content

[v16] Add favicon theme listener#45919

Merged
avatus merged 1 commit intobranch/v16from
bot/backport-45864-branch/v16
Aug 28, 2024
Merged

[v16] Add favicon theme listener#45919
avatus merged 1 commit intobranch/v16from
bot/backport-45864-branch/v16

Conversation

@avatus
Copy link
Copy Markdown
Contributor

@avatus avatus commented Aug 27, 2024

Backport #45864 to branch/v16

This PR changes the way we update our favicon based on system theme
preference. Currently, we rely on the media attr in the link tag to obey
the system preference, but some browsers don't seem to support that very
well. Instead, we will now add a listener when Teleport loads to the
theme and set the favicon dynamically.

Note: this means the favicon will match the theme of the system/browser
and NOT the theme of the page (which can be different, depending on
user). The goal of the favicon theme switch is to make the favicon
visible based on the browser's theme, rather than necessarily matching
the page theme.

This can eventually be expanded upon to be included in a theme switch
when we have a user settings page that allows "system" as a theme choice
@avatus avatus added the no-changelog Indicates that a PR does not require a changelog entry label Aug 27, 2024
@avatus avatus enabled auto-merge August 27, 2024 18:37
@github-actions github-actions Bot requested review from kiosion and ryanclark August 27, 2024 18:37
@avatus avatus added this pull request to the merge queue Aug 28, 2024
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from kiosion August 28, 2024 09:18
Merged via the queue into branch/v16 with commit 61a1cdd Aug 28, 2024
@avatus avatus deleted the bot/backport-45864-branch/v16 branch August 28, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport no-changelog Indicates that a PR does not require a changelog entry size/sm ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants