Skip to content

[v15] Favicon updates#47276

Merged
avatus merged 3 commits intobranch/v15from
avatus/v15/favicon
Oct 8, 2024
Merged

[v15] Favicon updates#47276
avatus merged 3 commits intobranch/v15from
avatus/v15/favicon

Conversation

@avatus
Copy link
Copy Markdown
Contributor

@avatus avatus commented Oct 7, 2024

Backport #42671 #46719 and #45864

@avatus avatus added the no-changelog Indicates that a PR does not require a changelog entry label Oct 7, 2024
@github-actions github-actions Bot requested review from kimlisa, ryanclark and zmb3 October 7, 2024 14:59
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from zmb3 October 8, 2024 11:37
avatus added 3 commits October 8, 2024 09:49
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 force-pushed the avatus/v15/favicon branch from 04401d7 to cb41191 Compare October 8, 2024 14:49
@avatus avatus enabled auto-merge October 8, 2024 14:50
@avatus avatus added this pull request to the merge queue Oct 8, 2024
Merged via the queue into branch/v15 with commit 02bfdd2 Oct 8, 2024
@avatus avatus deleted the avatus/v15/favicon branch October 8, 2024 15:21
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/md ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants