diff options
Diffstat (limited to 'polygerrit-ui/app/elements/shared/gr-account-chip/gr-account-chip.html')
-rw-r--r-- | polygerrit-ui/app/elements/shared/gr-account-chip/gr-account-chip.html | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/polygerrit-ui/app/elements/shared/gr-account-chip/gr-account-chip.html b/polygerrit-ui/app/elements/shared/gr-account-chip/gr-account-chip.html index b6580256a8..543ed85de2 100644 --- a/polygerrit-ui/app/elements/shared/gr-account-chip/gr-account-chip.html +++ b/polygerrit-ui/app/elements/shared/gr-account-chip/gr-account-chip.html @@ -1,4 +1,5 @@ <!-- +@license Copyright (C) 2016 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); @@ -17,6 +18,7 @@ limitations under the License. <link rel="import" href="../../../bower_components/polymer/polymer.html"> <link rel="import" href="../gr-account-link/gr-account-link.html"> <link rel="import" href="../gr-button/gr-button.html"> +<link rel="import" href="../gr-icons/gr-icons.html"> <link rel="import" href="../gr-rest-api-interface/gr-rest-api-interface.html"> <link rel="import" href="../../../styles/shared-styles.html"> @@ -29,7 +31,7 @@ limitations under the License. } .container { align-items: center; - background: #eee; + background: var(--chip-background-color); border-radius: .75em; display: inline-flex; padding: 0 .5em; @@ -46,22 +48,15 @@ limitations under the License. gr-button.remove { --gr-button: { border: 0; - color: #666; - font-size: 1.7em; + color: var(--deemphasized-text-color); + font-size: 1.7rem; font-weight: normal; height: .6em; - line-height: .6em; + line-height: .6; margin-left: .15em; - margin-top: -.05em; padding: 0; text-decoration: none; } - --gr-button-hover-color: { - color: #333; - } - --gr-button-hover-background-color: { - color: #333; - } } :host:focus { border-color: transparent; @@ -75,14 +70,21 @@ limitations under the License. .transparentBackground, gr-button.transparentBackground { background-color: transparent; + padding: 0; } :host([disabled]) { opacity: .6; pointer-events: none; } + iron-icon { + height: 1.2rem; + width: 1.2rem; + } </style> <div class$="container [[_getBackgroundClass(transparentBackground)]]"> - <gr-account-link account="[[account]]"></gr-account-link> + <gr-account-link account="[[account]]" + additional-text="[[additionalText]]"> + </gr-account-link> <gr-button id="remove" link @@ -91,7 +93,9 @@ limitations under the License. tabindex="-1" aria-label="Remove" class$="remove [[_getBackgroundClass(transparentBackground)]]" - on-tap="_handleRemoveTap">×</gr-button> + on-tap="_handleRemoveTap"> + <iron-icon icon="gr-icons:close"></iron-icon> + </gr-button> </div> <gr-rest-api-interface id="restAPI"></gr-rest-api-interface> </template> |