diff --git a/projects/aca-content/src/lib/components/header-actions/header-actions.component.html b/projects/aca-content/src/lib/components/header-actions/header-actions.component.html index 305486661..6a80fe40f 100644 --- a/projects/aca-content/src/lib/components/header-actions/header-actions.component.html +++ b/projects/aca-content/src/lib/components/header-actions/header-actions.component.html @@ -1,31 +1,22 @@ -
-
- - - -
- -
-
+ + + +
+ +
+
- - -
- -
-
+ + +
+ +
+
- - - -
-
+ + + diff --git a/projects/aca-content/src/lib/components/header-actions/header-actions.component.scss b/projects/aca-content/src/lib/components/header-actions/header-actions.component.scss index 0fe4a603b..82bb090ab 100644 --- a/projects/aca-content/src/lib/components/header-actions/header-actions.component.scss +++ b/projects/aca-content/src/lib/components/header-actions/header-actions.component.scss @@ -1,47 +1,18 @@ .aca-page-layout-header { - .app-search-input { background: none; } - .action-bar { - display: flex; - flex: auto; - height: 32px; - margin-left: 24px; + .mat-flat-button { + min-width: auto; + margin-left: 4px; + } - adf-toolbar-divider { - width: 24px; - height: 32px; - margin: 4px 0 0 12px; + .app-search-input { + padding-bottom: 0 !important; + + .app-search-container { + padding-top: 0; } - - & > button { - margin-left: 12px; - } - } - - .aca-mat-button { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - letter-spacing: 0.25px; - font-weight: 500; - font-size: 14px; - font-style: normal; - border-radius: 6px; - border: none; - height: 32px; - } - - .aca-create-button { - background-color: var(--theme-create-button-background-color); - color: var(--theme-create-button-text-color); - } - - .aca-upload-button { - background-color: var(--theme-upload-button-background-color); - color: var(--theme-upload-button-text-color); } } diff --git a/projects/aca-content/src/lib/components/header-actions/header-actions.component.spec.ts b/projects/aca-content/src/lib/components/header-actions/header-actions.component.spec.ts index 4348f8f4e..f72391ce6 100644 --- a/projects/aca-content/src/lib/components/header-actions/header-actions.component.spec.ts +++ b/projects/aca-content/src/lib/components/header-actions/header-actions.component.spec.ts @@ -78,7 +78,7 @@ describe('HeaderActionsComponent', () => { fixture.detectChanges(); await fixture.whenStable(); - const buttons = fixture.debugElement.queryAll(By.css('.action-bar > .aca-mat-button')); + const buttons = fixture.debugElement.queryAll(By.css('.mat-flat-button')); expect(buttons.length).toBe(2); expect(getCreateButton()).toBeTruthy(); @@ -91,7 +91,7 @@ describe('HeaderActionsComponent', () => { fixture.detectChanges(); await fixture.whenStable(); - const buttons = fixture.debugElement.queryAll(By.css('.action-bar > .aca-mat-button')); + const buttons = fixture.debugElement.queryAll(By.css('.mat-flat-button')); expect(buttons.length).toBe(1); expect(getCreateButton()).toBeTruthy(); diff --git a/projects/aca-content/src/lib/ui/variables/variables.scss b/projects/aca-content/src/lib/ui/variables/variables.scss index e2a4fc0c7..40d61f96a 100644 --- a/projects/aca-content/src/lib/ui/variables/variables.scss +++ b/projects/aca-content/src/lib/ui/variables/variables.scss @@ -50,9 +50,6 @@ $sidenav-background-color: #f8f8f8; $selected-text-color: #212121; $selected-background-color: rgba(31, 116, 219, 0.24); $action-button-text-color: rgba(33, 35, 40, 0.7); -$tooltip-background-color: #ffffff; -$create-button-text-color: #212121; -$upload-button-background-color: #2A7DE1; $page-layout-header-background-color: #ffffff; $defaults: ( @@ -96,12 +93,7 @@ $defaults: ( --theme-hover-background-color: $grey-text-background, --theme-action-button-text-color: $action-button-text-color, --theme-header-border-color: $grey-background, - --theme-tooltip-background-color: $tooltip-background-color, --theme-page-layout-header-background-color: $page-layout-header-background-color, - --theme-create-button-background-color: $grey-text-background, - --theme-create-button-text-color: $create-button-text-color, - --theme-upload-button-background-color: $upload-button-background-color, - --theme-upload-button-text-color: $pagination-background-color, ); // propagates SCSS variables into the CSS variables scope