fune/browser/components/asrouter/content-src
Shane Hughes 81b755329b Bug 1892402 - Make newtab feature callouts handle old themes more gracefully. r=omc-reviewers,negin
The newtab page is styled according to a `lwt-newtab-brighttext`
attribute, which until now is only present in the newtab page, and not
exposed to the chrome. This is a problem for elements like feature
callouts, which we want to fit in with the newtab content, even though
they exist in the chrome. That's okay in many cases, because the
callouts also use theme properties, and there's usually a concordance
between `lwt-newtab-brighttext` and the content color scheme. But in a
few older (but very popular) themes, there are missing theme properties,
and it's possible for the newtab page to be very dark even though
prefers-color-scheme is not dark.

This patch resolves the issue by exposing `lwt-newtab-brighttext` to the
chrome, and using that attribute to theme newtab callouts.

Differential Revision: https://phabricator.services.mozilla.com/D208256
2024-04-24 20:54:02 +00:00
..
components Bug 1886856 - Allow about:messagepreview to decode non-latin text r=omc-reviewers,dmose 2024-03-28 16:26:14 +00:00
schemas Bug 1876173 - Add attribute to allow RDM to be disabled for aboutwelcome spotlight r=omc-reviewers,aminomancer 2024-03-25 23:05:05 +00:00
styles Bug 1892402 - Make newtab feature callouts handle old themes more gracefully. r=omc-reviewers,negin 2024-04-24 20:54:02 +00:00
templates Bug 1876173 - Add attribute to allow RDM to be disabled for aboutwelcome spotlight r=omc-reviewers,aminomancer 2024-03-25 23:05:05 +00:00
asrouter-utils.mjs Bug 1881816 - Rename ActorConstants.sys.mjs to ActorConstants.mjs. r=amy,omc-reviewers,aminomancer 2024-03-19 17:01:38 +00:00