Disable for admin theme?

Created on 16 September 2023, over 1 year ago

Problem/Motivation

Toastify is a good fit for our front-end theme, but it's not so welcome in the admin theme (a lightly css-enhanced Claro). We'd like messages in the admin theme to be unaltered.

It doesn't appear to be possible to disable Toastify entirely for a single theme. The class swap in hook_element_plugin_alter() is cached regardless of theme.

Setting toastify/toastify: false in libraries-override results in no messages appearing at all, presumably because the class is swapped and expects the library to be there.

Proposed resolution

A checkbox "Disable for admin theme" in Toastify settings would be great. Not sure how that could be implemented to work with the class swap.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇳🇿New Zealand john pitcairn

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024