Skip to content

Commit

Permalink
feat(Badge): remove border on OUTSIDE alignment, remove translate on …
Browse files Browse the repository at this point in the history
…OUTSIDE alignment (#1940)
  • Loading branch information
YossiSaadi authored Feb 11, 2024
1 parent dd46c24 commit 88ac1ab
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions src/components/Badge/Badge.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ $embeddedPosition: 15%;
.badge {
z-index: 1;
position: absolute;
border: 2px solid;
border-radius: 16px;
border-color: var(--primary-background-color);

&:not(.outside) {
border: 2px solid;
border-color: var(--primary-background-color);
}

&.topEnd {
&.rectangular {
Expand All @@ -19,8 +22,8 @@ $embeddedPosition: 15%;

&.outside {
top: 0;
right: 0;
translate: 100% -50%;
right: -2px;
translate: 100% 0;
}

&.circular {
Expand All @@ -39,8 +42,8 @@ $embeddedPosition: 15%;

&.outside {
top: 0;
left: 0;
translate: -100% -50%;
left: -2px;
translate: -100% 0;
}

&.circular {
Expand All @@ -59,8 +62,8 @@ $embeddedPosition: 15%;

&.outside {
bottom: 0;
right: 0;
translate: 100% -50%;
right: -2px;
translate: 100% 0;
}

&.circular {
Expand All @@ -79,8 +82,8 @@ $embeddedPosition: 15%;

&.outside {
bottom: 0;
left: 0;
translate: -100% -50%;
left: -2px;
translate: -100% 0;
}

&.circular {
Expand Down

0 comments on commit 88ac1ab

Please sign in to comment.