Skip to content

Commit

Permalink
🐛 fix(alert): remplacement des box-shadow en background-image (#742)
Browse files Browse the repository at this point in the history
- les bordures sont dessinées en background image à la place de box shadow
  • Loading branch information
keryanS authored Nov 6, 2023
1 parent 8fd15f7 commit 99a255e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/component/alert/style/_module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
/// @group alert
////

@use 'module/spacing';

#{ns(alert)} {
@include relative();
@include padding(4v 9v 3v 14v);
@include set-title-margin(0 0 1v);
@include set-text-margin(0 0 1v);
background-size: 100% 1px, 1px 100%, 100% 1px, spacing.space(10v) 100%;
background-position: 0 0, 100% 0, 0 100%, 0 0, 100% 100%;
background-repeat: no-repeat, no-repeat no-repeat, no-repeat;
@include icon-size(md, before);
@include icon-style(before) {
@include absolute(0, null, null, 0);
Expand Down
10 changes: 5 additions & 5 deletions src/component/alert/style/_scheme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,26 @@

@mixin _alert-scheme($legacy: false) {
#{ns(alert)} {
@include color.box-shadow((plain grey) (background flat grey), (legacy:$legacy), all-1-in left-10v-in);
@include color.background-image((border plain grey) (border plain grey) (border plain grey) (border plain grey) (flat grey), (legacy:$legacy));

@include before {
@include color.text(inverted grey, (legacy:$legacy));
}

&--info {
@include color.box-shadow((plain info) (background flat info), (legacy:$legacy), all-1-in left-10v-in);
@include color.background-image((border plain info) (border plain info) (border plain info) (border plain info) (flat info), (legacy:$legacy));
}

&--error {
@include color.box-shadow((plain error) (background flat error), (legacy:$legacy), all-1-in left-10v-in);
@include color.background-image((border plain error) (border plain error) (border plain error) (border plain error) (flat error), (legacy:$legacy));
}

&--success {
@include color.box-shadow((plain success) (background flat success), (legacy:$legacy), all-1-in left-10v-in);
@include color.background-image((border plain success) (border plain success) (border plain success) (border plain success) (flat success), (legacy:$legacy));
}

&--warning {
@include color.box-shadow((plain warning) (background flat warning), (legacy:$legacy), all-1-in left-10v-in);
@include color.background-image((border plain warning) (border plain warning) (border plain warning) (border plain warning) (flat warning), (legacy:$legacy));
}
}
}

0 comments on commit 99a255e

Please sign in to comment.