diff --git a/apps/datahub/src/app/home/header-badge-button/header-badge-button.component.css b/apps/datahub/src/app/home/header-badge-button/header-badge-button.component.css
index e69de29bb2..81b42abeaf 100644
--- a/apps/datahub/src/app/home/header-badge-button/header-badge-button.component.css
+++ b/apps/datahub/src/app/home/header-badge-button/header-badge-button.component.css
@@ -0,0 +1,3 @@
+mat-icon {
+ font-variation-settings: 'FILL' 1;
+}
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 4a52f47ae2..bad4e63e70 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
@@ -78,7 +78,7 @@
*ngIf="!isOpen"
(buttonClick)="open()"
type="outline"
- extraClass="!p-[8px]"
+ extraClass="!px-[8px]"
data-cy="filters-expand"
>
more_horiz
diff --git a/libs/ui/inputs/src/lib/button/button.component.css b/libs/ui/inputs/src/lib/button/button.component.css
index e69de29bb2..d458e57363 100644
--- a/libs/ui/inputs/src/lib/button/button.component.css
+++ b/libs/ui/inputs/src/lib/button/button.component.css
@@ -0,0 +1,5 @@
+/* makes sure icons will not make the buttons grow vertically */
+mat-icon.mat-icon {
+ margin-top: -0.3em;
+ margin-bottom: -0.3em;
+}
diff --git a/libs/ui/inputs/src/lib/button/button.component.stories.ts b/libs/ui/inputs/src/lib/button/button.component.stories.ts
index a106ef86ea..af7bee315b 100644
--- a/libs/ui/inputs/src/lib/button/button.component.stories.ts
+++ b/libs/ui/inputs/src/lib/button/button.component.stories.ts
@@ -5,6 +5,7 @@ import {
TRANSLATE_DEFAULT_CONFIG,
UtilI18nModule,
} from '@geonetwork-ui/util/i18n'
+import { MatIconModule } from '@angular/material/icon'
export default {
title: 'Inputs/ButtonComponent',
@@ -14,6 +15,7 @@ export default {
imports: [
UtilI18nModule,
TranslateModule.forRoot(TRANSLATE_DEFAULT_CONFIG),
+ MatIconModule,
],
}),
],
@@ -36,7 +38,22 @@ export const Primary: StoryObj = {
},
render: (args) => ({
props: args,
- template:
- '{{ content }}',
+ template: `
+
+ {{ content }}
+
+
+ with an icon downloading
+
+
+ globe_asia bigger
+
+
+ pest_control smaller
+
+
+ different waves shape
+
+
`,
}),
}
diff --git a/libs/ui/inputs/src/lib/button/button.component.ts b/libs/ui/inputs/src/lib/button/button.component.ts
index 65935b7a59..46764cb0d4 100644
--- a/libs/ui/inputs/src/lib/button/button.component.ts
+++ b/libs/ui/inputs/src/lib/button/button.component.ts
@@ -61,7 +61,7 @@ export class ButtonComponent {
case 'primary':
return 'focus:ring-4 focus:ring-primary-lightest'
case 'outline':
- return 'border border-gray-300 hover:border-primary-lighter focus:border-primary-lighter focus:ring-4 focus:ring-primary-lightest active:border-primary-darker'
+ return 'border border-gray-300 -m-[1px] hover:border-primary-lighter focus:border-primary-lighter focus:ring-4 focus:ring-primary-lightest active:border-primary-darker'
case 'light':
return 'focus:ring-4 focus:ring-gray-300'
}
diff --git a/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.css b/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.css
index 415c6399e7..37815a4641 100644
--- a/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.css
+++ b/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.css
@@ -9,6 +9,12 @@ mat-icon {
width: 1em;
height: 1em;
font-size: 1.5em;
+ margin-top: -0.1em;
+ font-variation-settings: 'opsz' 40;
+}
+
+.star-filled {
+ font-variation-settings: 'FILL' 1;
}
.star-toggle-overlay {