/**
 * @license
 * Copyright (C) 2020 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import {html} from '@polymer/polymer/lib/utils/html-tag';

export const htmlTemplate = html`
  <style>
    :host {
      display: inline-block;
      border-radius: 50%;
      background-size: cover;
      background-color: var(--avatar-background-color, var(--gray-background));
    }
  </style>
`;

/**
 * @license
 * Copyright (C) 2020 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import {html} from '@polymer/polymer/lib/utils/html-tag';

export const htmlTemplate = html`
  <style>
    :host([hidden]) {
      display: none;
    }
    :host {
      display: inline-block;
      border-radius: 50%;
      background-size: cover;
      background-color: var(--avatar-background-color, var(--gray-background));
    }
  </style>
`;

Fix bug in gr-avatar which wasn't hiding avatars when "hidden" is set
Fix bug in gr-avatar which wasn't hiding avatars when "hidden" is set

This happened for sites that did not set an avatar. Seems a recent
regression as it works on gerrit 3.3.

Release-Notes: skip
Change-Id: I148716b36c3d57e3eb3f1486b9539f1741d7288b
(cherry picked from commit e0358c2e4e7db76a7efe01de9cc14ef16af03a2e)
