Skip to content

Commit

Permalink
fix(agora): nominated targets layout bug (AG-1652) (#3017)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagely1 authored Feb 25, 2025
1 parent 519c811 commit db1d673
Show file tree
Hide file tree
Showing 11 changed files with 5,535 additions and 125 deletions.
25 changes: 0 additions & 25 deletions apps/agora/app/src/_app-theme.scss
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
@use 'sass:map';
@use '@angular/material' as mat;
@use 'libs/agora/themes/src/fonts' as fonts;
@use 'libs/agora/themes/src/palettes' as palettes;
@use 'libs/agora/themes/src/index' as agora;
@include mat.typography-hierarchy(fonts.$lato);
@include mat.elevation-classes;
@include mat.app-background;

$primary: mat.m2-define-palette(palettes.$dark-blue-palette, 600);
$accent: mat.m2-define-palette(palettes.$accent-purple-palette, 400);
$theme: mat.m2-define-light-theme(
(
color: (
primary: $primary,
accent: $accent,
),
typography: fonts.$lato,
density: 0,
is-dark: false,
)
);

// Add custom palettes used in figma to the theme
$theme: map.deep-merge(
Expand All @@ -31,13 +13,6 @@ $theme: map.deep-merge(
)
);

// Emit theme-dependent styles for common features used across multiple components.
@include mat.elevation-classes;
@include mat.app-background;

// Emit styles for MatButton based on `$theme`.
@include mat.button-theme($theme);

// Include the theme mixins for other components you use here.
@include agora.theme($theme);

Expand Down
4 changes: 2 additions & 2 deletions apps/agora/app/src/app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import { provideHttpClient, withInterceptors } from '@angular/common/http';
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
import { providePrimeNG } from 'primeng/config';
import Lara from '@primeng/themes/lara';
import { MyPreset } from './myPrimeNGPreset';
import { BASE_PATH as API_CLIENT_BASE_PATH } from '@sagebionetworks/agora/api-client-angular';
import { BASE_PATH as SYNAPSE_API_CLIENT_BASE_PATH } from '@sagebionetworks/synapse/api-client-angular';
import { configFactory, ConfigService } from '@sagebionetworks/agora/config';
Expand Down Expand Up @@ -53,7 +53,7 @@ export const appConfig: ApplicationConfig = {
provideAnimationsAsync(),
providePrimeNG({
theme: {
preset: Lara,
preset: MyPreset,
options: {
darkModeSelector: false,
},
Expand Down
Loading

0 comments on commit db1d673

Please sign in to comment.