Telegram-Mini-Apps / issues

Centralised storage of platform issues and enhancement proposals.
11 stars 1 forks source link

Native app appends style tag each time, night mode changes #4

Open heyqbnk opened 2 years ago

heyqbnk commented 2 years ago

Describe the bug Every time, we switch night mode, native app automatically appends its own style tag: image

To Reproduce Steps to reproduce the behavior:

  1. Open Sandbox. Enable developer mode and watch for head tag changes
  2. Go to Telegram settings and switch Night Mode several times
  3. Now head tag contains a lot of almost the same style tags

Expected behavior It seems that native app appends style tag with styles according to current theme, but it looks like the correct way is not to always append new style tag, but replace last one added. Otherwise, elements become flooded with same CSS rules.