Skip to content

Commit

Permalink
feat(mon-pix): add border-left to feedbacks
Browse files Browse the repository at this point in the history
Co-authored-by: Rébecca Kaci <82950611+reibecca@users.noreply.github.com>
  • Loading branch information
dlahaye and reibecca committed Jul 8, 2024
1 parent eeba227 commit bf125c3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions mon-pix/app/styles/components/modulix/_feedback.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.feedback {
position: relative;
padding-left: var(--pix-spacing-3x);

&--success {
--modulix-feedback-state-color: var(--pix-success-700);
}
Expand All @@ -7,6 +10,16 @@
--modulix-feedback-state-color: var(--pix-error-700);
}

&::before {
position: absolute;
left: 0;
width: 6px;
height: 100%;
background-color: var(--modulix-feedback-state-color);
border-radius: var(--modulix-radius-full);
content: '';
}

&__state {
color: var(--modulix-feedback-state-color);
font-weight: var(--pix-font-bold);
Expand Down
1 change: 1 addition & 0 deletions mon-pix/app/styles/pages/_module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

--modulix-max-content-width: 740px;
--modulix-radius: 16px;
--modulix-radius-full: 100% / 10%;

flex-grow: 1;
color: var(--pix-neutral-900);
Expand Down

0 comments on commit bf125c3

Please sign in to comment.