commit 56ec65e65b55cfa9c48b3c2a37e46a5862725f0a Author: Ben Rohlfs Date: Tue Oct 6 15:29:35 2020 +0200 Bold the user name, if they are in the attention set It was discussed and agreed with the UX team that more emphasis is desirable. Change-Id: Ia59c94dddad4a701b74ddbaa0467d78014b5ba4a diff --git a/polygerrit-ui/app/elements/shared/gr-account-label/gr-account-label.ts b/polygerrit-ui/app/elements/shared/gr-account-label/gr-account-label.ts index c1fee2dc..be23cb3 100644 --- a/polygerrit-ui/app/elements/shared/gr-account-label/gr-account-label.ts +++ b/polygerrit-ui/app/elements/shared/gr-account-label/gr-account-label.ts @@ -183,6 +183,18 @@ export class GrAccountLabel extends GestureEventListeners( ); } + _computeHasAttentionClass( + config: ServerInfo | undefined, + highlight: boolean, + account: AccountInfo, + change: ChangeInfo, + force: boolean + ) { + return this._hasAttention(config, highlight, account, change, force) + ? 'hasAttention' + : ''; + } + _computeName( account?: AccountInfo, config?: ServerInfo, diff --git a/polygerrit-ui/app/elements/shared/gr-account-label/gr-account-label_html.ts b/polygerrit-ui/app/elements/shared/gr-account-label/gr-account-label_html.ts index d2b58a6..1d8b13e 100644 --- a/polygerrit-ui/app/elements/shared/gr-account-label/gr-account-label_html.ts +++ b/polygerrit-ui/app/elements/shared/gr-account-label/gr-account-label_html.ts @@ -85,6 +85,9 @@ export const htmlTemplate = html` position: relative; top: 2px; } + .hasAttention .name { + font-weight: var(--font-weight-bold); + } - +