If there's no color value for the mask-icon meta tag then there's no need to output it.

Comments

DamienMcKenna created an issue. See original summary.

WidgetsBurritos’s picture

Status: Active » Needs review
StatusFileSize
new973 bytes

I have this same need myself. In researching this, it turns out the fix is a quick one-liner.

WidgetsBurritos’s picture

StatusFileSize
new2.2 KB

The fix is one liner, but this probably deserves good test coverage as well, so a patch with updated tests.

WidgetsBurritos’s picture

Just to confirm the tests was done properly, here is the test by itself, without the fix. This should fail.

WidgetsBurritos’s picture

bighappyface’s picture

+1 LGTM

I have tested it out with simplytest.me and the attribute is only visible when expected.

damienmckenna’s picture

Category: Task » Bug report
Status: Needs review » Fixed
Parent issue: » #2844497: Plan for Metatag 7.x-1.21 release

Awesome fix, @WidgetsBurritos!

damienmckenna’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev
Status: Fixed » Postponed

Lets port this to the 8.x-1.x branch after the favicons are ported.

WidgetsBurritos’s picture

Cool thanks!

damienmckenna’s picture

Status: Postponed » Patch (to be ported)

8.x-1.0 is out, so this is fair game again.