From be9a16a2a23a9e01b6e15aec7947319091c4f4b6 Mon Sep 17 00:00:00 2001 From: cryptalith Date: Fri, 21 Aug 2026 15:48:59 -0600 Subject: [PATCH 1/3] PD-5720 Update global header buttons on mobile Restyle the mobile/tablet header actions (account, notifications, language, main menu) as consistent 40x40 Material Symbols icon buttons, matching the notification indicator styling, with the visibility rules from the Figma spec. --- src/app/layout/_header-action-button.scss | 31 ++++++++ src/app/layout/header/header.component.html | 19 +++-- src/app/layout/header/header.component.scss | 7 ++ .../layout/header/header.component.spec.ts | 72 +++++++++++++++++-- src/app/layout/header/header.component.ts | 31 ++++++-- .../layout/language/language.component.html | 35 ++++++--- .../layout/language/language.component.scss | 11 ++- .../language/language.component.spec.ts | 29 ++++++++ src/app/layout/language/language.component.ts | 7 +- .../layout/menu-icon/menu-icon.component.html | 9 +-- .../layout/menu-icon/menu-icon.component.scss | 62 ++-------------- .../menu-icon.component.scss-theme.scss | 25 ------- .../menu-icon/menu-icon.component.spec.ts | 15 ++++ .../layout/menu-icon/menu-icon.component.ts | 5 +- .../layout/user-menu/user-menu.component.html | 43 +++++++++-- .../layout/user-menu/user-menu.component.scss | 56 +++++++++++++++ .../user-menu/user-menu.component.spec.ts | 61 +++++++++++++++- .../layout/user-menu/user-menu.component.ts | 4 +- 18 files changed, 390 insertions(+), 132 deletions(-) create mode 100644 src/app/layout/_header-action-button.scss delete mode 100644 src/app/layout/menu-icon/menu-icon.component.scss-theme.scss diff --git a/src/app/layout/_header-action-button.scss b/src/app/layout/_header-action-button.scss new file mode 100644 index 0000000000..09384702ed --- /dev/null +++ b/src/app/layout/_header-action-button.scss @@ -0,0 +1,31 @@ +// Shared styling for the global header action buttons on mobile and tablet +// (account, notifications, language and main menu). +// +// Applied on top of `mat-stroked-button`, which supplies the border and hover +// states. The explicit box is required because MDC stroked buttons default to +// 36px high and grow with their border. +@mixin header-action-button { + box-sizing: border-box; + display: inline-flex; + align-items: center; + justify-content: center; + width: 40px; + height: 40px; + min-width: 40px; + padding: 0; + margin: 0; + + mat-icon { + width: 24px; + height: 24px; + font-size: 24px; + line-height: 24px; + overflow: visible; + margin: 0; + color: var(--orcid-color-ui-background-darkest, #212121); + } + + .filled { + font-variation-settings: 'FILL' 1; + } +} diff --git a/src/app/layout/header/header.component.html b/src/app/layout/header/header.component.html index 0066e11112..2f2e63f568 100644 --- a/src/app/layout/header/header.component.html +++ b/src/app/layout/header/header.component.html @@ -29,18 +29,17 @@