For one of the cases I opened a bug with the theme upstream:
https://github.com/nana-4/materia-theme/issues/613