${this.showCanvas ? html`
` : nothing}
${this.showHue ? html`
` : nothing}
${this.showInputs ? html`
${this._colorMode}
HEX
RGB
${this._colorMode === 'HEX'
? html``
: html`
this._onRgbInput('r', e)}>
this._onRgbInput('g', e)}>
this._onRgbInput('b', e)}>
`}
` : nothing}
${this.showActions ? html`
${this.type === 'swatches'
? html` { this._view = 'swatches'; }}>Cancel`
: nothing}
{ this._apply(this._pendingColor); if (this.type === 'swatches') this._view = 'swatches'; this._closePopover(); }}>Okay
` : nothing}
`;
}
private _renderTrigger() {
const isNoFill = this.value === 'none';
const displayColor = isNoFill ? null : this._norm(this.value);
return html`