diff --git a/apps/datahub/src/app/home/home-header/home-header.component.html b/apps/datahub/src/app/home/home-header/home-header.component.html
index 270e43834c..9591fa2da6 100644
--- a/apps/datahub/src/app/home/home-header/home-header.component.html
+++ b/apps/datahub/src/app/home/home-header/home-header.component.html
@@ -1,6 +1,6 @@
diff --git a/apps/datahub/src/app/home/home-header/home-header.component.ts b/apps/datahub/src/app/home/home-header/home-header.component.ts
index 959596af08..e7dd6780b5 100644
--- a/apps/datahub/src/app/home/home-header/home-header.component.ts
+++ b/apps/datahub/src/app/home/home-header/home-header.component.ts
@@ -48,6 +48,7 @@ export class HomeHeaderComponent {
SORT_BY_PARAMS = SortByEnum
searchConfig: SearchConfig = getOptionalSearchConfig()
showLanguageSwitcher = getGlobalConfig().LANGUAGES?.length > 0
+ foregroundColor = getThemeConfig().HEADER_FOREGROUND_COLOR || '#ffffff'
constructor(
public routerFacade: RouterFacade,
diff --git a/apps/datahub/src/app/home/search/search-filters/search-filters.component.html b/apps/datahub/src/app/home/search/search-filters/search-filters.component.html
index 8d463930f5..07ad432a4f 100644
--- a/apps/datahub/src/app/home/search/search-filters/search-filters.component.html
+++ b/apps/datahub/src/app/home/search/search-filters/search-filters.component.html
@@ -91,7 +91,7 @@
[ngClass]="{ 'sm:col-span-3 lg:col-span-2': !isOpen }"
>
>
diff --git a/apps/datahub/src/app/record/header-record/header-record.component.html b/apps/datahub/src/app/record/header-record/header-record.component.html
index 0533c1bbac..b4ceefb0ac 100644
--- a/apps/datahub/src/app/record/header-record/header-record.component.html
+++ b/apps/datahub/src/app/record/header-record/header-record.component.html
@@ -27,6 +27,8 @@
class="language-switcher text-[13px] mt-0.5"
[style.--color-main]="foregroundColor"
[style.--color-gray-300]="foregroundColor"
+ [style.--color-primary-darker]="foregroundColor"
+ [style.--color-primary-black]="foregroundColor"
>
diff --git a/apps/datahub/src/app/record/record-metadata/record-metadata.component.css b/apps/datahub/src/app/record/record-metadata/record-metadata.component.css
index e3a0105a26..55d8c876f6 100644
--- a/apps/datahub/src/app/record/record-metadata/record-metadata.component.css
+++ b/apps/datahub/src/app/record/record-metadata/record-metadata.component.css
@@ -1,3 +1,8 @@
+/* TODO(mdc-migration): The following rule targets internal classes of tabs that may no longer apply for the MDC version. */
+::ng-deep .mat-mdc-tab-labels {
+ /* move tabs on the right to let the title show */
+ margin-left: 140px;
+}
::ng-deep .mat-mdc-tab.mdc-tab {
letter-spacing: 0.88px;
}
@@ -16,6 +21,9 @@
}
@media only screen and (max-width: 639px) {
/* TODO(mdc-migration): The following rule targets internal classes of tabs that may no longer apply for the MDC version. */
+ ::ng-deep .mat-mdc-tab-labels {
+ margin-left: 0px;
+ }
::ng-deep .mat-mdc-tab.mdc-tab {
padding: 0px !important;
margin-right: 24px;
diff --git a/apps/datahub/src/app/record/record-metadata/record-metadata.component.html b/apps/datahub/src/app/record/record-metadata/record-metadata.component.html
index 12a73987d8..62a7e5abab 100644
--- a/apps/datahub/src/app/record/record-metadata/record-metadata.component.html
+++ b/apps/datahub/src/app/record/record-metadata/record-metadata.component.html
@@ -79,9 +79,7 @@
>
-
+
-
+
({
+ label: `${language}`.toUpperCase(),
+ value: language,
+ })
+ )
constructor(
@Optional()
@Inject(LANGUAGES_LIST)
- private languagePlaceholder,
+ private languagesList: string[],
private translate: TranslateService
) {}
@@ -31,22 +30,14 @@ export class LanguageSwitcherComponent implements OnInit {
return this.translate.currentLang
}
- ngOnInit(): void {
- const languages = this.languagePlaceholder || DEFAULT_LANGUAGES
- this.languageList = languages.map((language) => ({
- label: `${language}`.toUpperCase(),
- value: language,
- }))
- }
-
- changeLanguage(value) {
+ changeLanguage(value: unknown) {
try {
- localStorage.setItem(LANGUAGE_STORAGE_KEY, value)
+ localStorage.setItem(LANGUAGE_STORAGE_KEY, value as string)
location.reload()
} catch (error) {
console.warn(`Language choice could not be persisted`, error)
}
- this.translate.use(value)
+ this.translate.use(value as string)
}
}