element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
GNU Affero General Public License v3.0
3.37k stars 719 forks source link

Widget background color set by theme #3162

Open vranki opened 3 years ago

vranki commented 3 years ago

Describe the bug

This is same bug as: https://github.com/vector-im/element-web/issues/16919

Widgets are web pages in iframe. Web pages have white background by default.

Element web's widget viewer uses background color from theme. This causes many web pages to have black text on dark background with dark themes.

To Reproduce

Steps to reproduce the behavior:

  1. Create a widget, for example https://tkstats.r-f.fi/
  2. Set dark theme
  3. Observer page being unreadable

Expected behavior

Readable page with white background

Smartphone (please complete the following information):

Additional context

bmarty commented 3 years ago

(see discussion in vector-im/element-web#16919)