Skip to content

Commit

Permalink
Applied same gap between header icons in the dspace theme
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrevryghem committed Sep 26, 2023
1 parent c4f5466 commit b34e95a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/search-navbar/search-navbar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<form [formGroup]="searchForm" (ngSubmit)="onSubmit(searchForm.value)" autocomplete="on">
<input #searchInput [@toggleAnimation]="isExpanded" [attr.aria-label]="('nav.search' | translate)" name="query"
formControlName="query" type="text" placeholder="{{searchExpanded ? ('nav.search' | translate) : ''}}"
class="d-inline-block bg-transparent position-absolute form-control dropdown-menu-right pl-1" [attr.data-test]="'header-search-box' | dsBrowserOnly">
class="d-inline-block bg-transparent position-absolute form-control dropdown-menu-right pl-1 pr-4"
[attr.data-test]="'header-search-box' | dsBrowserOnly">
<button class="submit-icon btn btn-link btn-link-inline" [attr.aria-label]="'nav.search.button' | translate" type="button" (click)="searchExpanded ? onSubmit(searchForm.value) : expand()" [attr.data-test]="'header-search-icon' | dsBrowserOnly">
<em class="fas fa-search fa-lg fa-fw"></em>
</button>
Expand Down
5 changes: 5 additions & 0 deletions src/themes/dspace/app/header/header.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@
color: var(--ds-header-icon-color-hover);
}
}

.navbar {
display: flex;
gap: 0.25rem;
}

0 comments on commit b34e95a

Please sign in to comment.