Skip to content

Commit

Permalink
fix: render cds-alert-actions in safari
Browse files Browse the repository at this point in the history
Signed-off-by: stsogoo <stsogoo@vmware.com>
  • Loading branch information
Shijir committed Feb 11, 2022
1 parent 8de1fdb commit 45f5337
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/core/src/alert/alert.element.scss
Expand Up @@ -20,13 +20,6 @@ $lightweight-alert-line-height: $cds-global-typography-body-line-height;
color: var(--color);
}

:host([_type='default']) ::slotted(cds-alert-actions),
:host([_type='banner']) ::slotted(cds-alert-actions) {
--action-size: calc(var(--min-height) - #{$cds-global-space-4});
white-space: nowrap;
display: block;
}

:host([_type='banner']) {
--icon-size: #{$cds-global-space-9};
}
Expand Down Expand Up @@ -72,6 +65,13 @@ cds-internal-close-button {
display: none;
}

:host([_type='default']) ::slotted(cds-alert-actions),
:host([_type='banner']) ::slotted(cds-alert-actions) {
--action-size: calc(var(--min-height) - #{$cds-global-space-4});
white-space: nowrap;
display: block;
}

:host([_type='default']) cds-internal-close-button {
height: #{$cds-global-space-8};
}
Expand Down

0 comments on commit 45f5337

Please sign in to comment.