Skip to content

Commit

Permalink
[ACS-7560] undo deletion notification (#9632)
Browse files Browse the repository at this point in the history
* ACS-7560 Fixed margin around snackbar and size of x icon

* ACS-7560 Fixed styles for info snackbar
  • Loading branch information
AleksanderSklorz authored and VitoAlbano committed Jun 25, 2024
1 parent 0c67046 commit a6d5e3a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/core/src/lib/snackbar-content/snackbar-content.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,23 @@

&.adf-snackbar-message-content-action-button {
margin-right: 8px;
padding-left: 16px;
padding-right: 16px;
width: auto;
-webkit-font-smoothing: subpixel-antialiased;
}

&.adf-snackbar-message-content-action-icon {
padding: 0;
width: auto;

mat-icon {
height: 24px;
width: 24px;
font-size: 24px;
margin-right: 0;
margin-top: 4px;
}
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions lib/core/src/lib/styles/_mat-selectors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,6 @@ $mat-evolution-chip-set: '.mdc-evolution-chip-set';
$mat-button-base: '.mat-mdc-button-base';
$mat-evolution-chip-text-label: '.mdc-evolution-chip__text-label';
$cdk-overlay-pane: '.cdk-overlay-pane';
$mat-snackbar: '.mdc-snackbar';
$mat-snack-bar-container: '.mat-mdc-snack-bar-container';
$mat-snackbar-label: '.mdc-snackbar__label';
10 changes: 10 additions & 0 deletions lib/core/src/lib/styles/material.theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,14 @@
}
}
}

#{$mat-snackbar} {
&#{$mat-snack-bar-container} {
margin: 24px;

#{$mat-snackbar-label} {
line-height: unset;
}
}
}
}

0 comments on commit a6d5e3a

Please sign in to comment.