From 356d11d98205877ed88697ebb632d123a779f367 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 29 Mar 2021 15:41:41 -0400 Subject: [PATCH] LP1904036 help popover custom button css; smaller mat icon Signed-off-by: Bill Erickson --- .../app/share/eg-help-popover/eg-help-popover.component.html | 6 ++++-- .../src/app/share/eg-help-popover/eg-help-popover.component.ts | 5 +++++ Open-ILS/src/eg2/src/styles.css | 10 +++++----- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/share/eg-help-popover/eg-help-popover.component.html b/Open-ILS/src/eg2/src/app/share/eg-help-popover/eg-help-popover.component.html index b75422b02f..6b5e8ee17a 100644 --- a/Open-ILS/src/eg2/src/app/share/eg-help-popover/eg-help-popover.component.html +++ b/Open-ILS/src/eg2/src/app/share/eg-help-popover/eg-help-popover.component.html @@ -2,7 +2,9 @@ {{helpText}} {{helpText}} - diff --git a/Open-ILS/src/eg2/src/app/share/eg-help-popover/eg-help-popover.component.ts b/Open-ILS/src/eg2/src/app/share/eg-help-popover/eg-help-popover.component.ts index f0b61e9588..dce19a76b5 100644 --- a/Open-ILS/src/eg2/src/app/share/eg-help-popover/eg-help-popover.component.ts +++ b/Open-ILS/src/eg2/src/app/share/eg-help-popover/eg-help-popover.component.ts @@ -22,4 +22,9 @@ export class EgHelpPopoverComponent { // 'top', and so forth. @Input() placement = ''; + + // Allow for overriding the default button class. + // This augments the basic 'btn' class + @Input() + buttonClass = 'btn-sm'; } diff --git a/Open-ILS/src/eg2/src/styles.css b/Open-ILS/src/eg2/src/styles.css index 87fa38bcee..2c7b97a881 100644 --- a/Open-ILS/src/eg2/src/styles.css +++ b/Open-ILS/src/eg2/src/styles.css @@ -103,11 +103,6 @@ h5 {font-size: .95rem} line-height: inherit; } -.mat-icon-shrunk-in-button { - line-height: inherit; - font-size: 18px; -} - .input-group .mat-icon-in-button { font-size: .88rem !important; /* useful for buttons that cuddle up with inputs */ } @@ -117,6 +112,11 @@ h5 {font-size: .95rem} font-size: 22px; } +.mat-icon-shrunk-in-button { + line-height: inherit; + font-size: 18px; +} + /* allow spans/labels to vertically orient with material icons */ .label-with-material-icon { display: inline-flex; -- 2.11.0