Fix color picker tiles only showing outline

The @windows-form-element-base mixin sets background-image, so we need
to override that instead of just setting background-color.

Fixes #4065
This commit is contained in:
Abe Jellinek 2024-04-29 13:06:38 -04:00
parent 1626ecf48e
commit b9a93faabb

View file

@ -177,7 +177,7 @@
let tile = document.createElement('button');
tile.setAttribute('aria-label', colorLabels[i]);
tile.classList.add('grid-tile');
tile.style.backgroundColor = color;
tile.style.background = color;
tile.addEventListener('click', () => {
this.color = color;