Skip to content

Commit

Permalink
update email modal
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Jul 22, 2024
1 parent 03e9c85 commit 067c0b0
Show file tree
Hide file tree
Showing 19 changed files with 469 additions and 549 deletions.
9 changes: 9 additions & 0 deletions src/app/cdk/alert-message/alert-message.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<div>
<mat-icon class="large-material-icon" role="presentation"
>error_outline</mat-icon
>
</div>

<div class="alert-container">
<ng-content></ng-content>
</div>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
:host {
border: solid 1px;
border: solid 2px;
border-radius: 4px;
padding: 16px;
display: flex;
width: 100%;
}

mat-icon {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,17 @@
$background: map-get($theme, background);

:host {
border-color: mat.get-color-from-palette($foreground, state-notice-darkest);
border-color: mat.get-color-from-palette(
$foreground,
'state-notice-dark'
) !important;
background-color: rgba($state-notice-light, 0.15);
}
mat-icon {
color: mat.get-color-from-palette($foreground, state-notice-darkest);
color: mat.get-color-from-palette(
$foreground,
'state-notice-dark'
) !important;
}
}

Expand Down
11 changes: 11 additions & 0 deletions src/app/cdk/alert-message/alert-message.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { NgModule } from '@angular/core'
import { CommonModule } from '@angular/common'
import { AlertMessageComponent } from './alert-message.component'
import { MatIconModule } from '@angular/material/icon'

@NgModule({
declarations: [AlertMessageComponent],
imports: [CommonModule, MatIconModule],
exports: [AlertMessageComponent],
})
export class AlertMessageModule {}
7 changes: 0 additions & 7 deletions src/app/cdk/modal/alert-message/alert-message.component.html

This file was deleted.

3 changes: 0 additions & 3 deletions src/app/cdk/modal/modal.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ import { ModalFooterComponent } from './modal-footer/modal-footer.component'
import { ModalHeaderComponent } from './modal-header/modal-header.component'
import { ModalSideBarComponent } from './modal-side-bar/modal-side-bar.component'
import { ModalComponent } from './modal/modal.component'
import { AlertMessageComponent } from './alert-message/alert-message.component'

@NgModule({
declarations: [
ModalComponent,
ModalHeaderComponent,
ModalFooterComponent,
ModalSideBarComponent,
AlertMessageComponent,
],
imports: [
CommonModule,
Expand All @@ -31,7 +29,6 @@ import { AlertMessageComponent } from './alert-message/alert-message.component'
ModalHeaderComponent,
ModalFooterComponent,
ModalSideBarComponent,
AlertMessageComponent,
],
})
export class ModalModule {}
Loading

0 comments on commit 067c0b0

Please sign in to comment.