Skip to content

Commit

Permalink
refine component background-image url's
Browse files Browse the repository at this point in the history
  • Loading branch information
henrinie-nc committed Oct 10, 2024
1 parent 99e00e7 commit fe673c4
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
14 changes: 7 additions & 7 deletions src/components/collapse/_collapse.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
}

.collapse__header_error-badge {
background-image: url(../assets/icons/icon_error.svg);
background-image: url(/assets/icons/icon_error.svg);
height: 14px;
width: 14px;
display: inline-block;
Expand Down Expand Up @@ -132,7 +132,7 @@
height: rem-calc(20px);
width: rem-calc(20px);
vertical-align: text-bottom;
background-image: url(../assets/icons/icon_minus.svg);
background-image: url(/assets/icons/icon_minus.svg);
display: inline-block;
margin-right: 0.4rem;
background-position: center;
Expand All @@ -144,31 +144,31 @@
color: $dark-gray;

i {
background-image: url(../assets/icons/icon_minus.svg);
background-image: url(/assets/icons/icon_minus.svg);
}
}

&--alert {
color: $red;

i {
background-image: url(../assets/icons/icon-alert.svg);
background-image: url(/assets/icons/icon-alert.svg);
}
}

&--success {
color: $blue;

i {
background-image: url(../assets/icons/icon_checked.svg);
background-image: url(/assets/icons/icon_checked.svg);
}
}

&--enquiry-sent {
color: $yellow-enquiry-sent;

i {
background-image: url(../assets/icons/icon_question.svg);
background-image: url(/assets/icons/icon_question.svg);
}
}
}
Expand Down Expand Up @@ -323,7 +323,7 @@
height: rem-calc(20px);
width: rem-calc(20px);
vertical-align: text-bottom;
background-image: url(../assets/icons/icon-alert.svg);
background-image: url(/assets/icons/icon-alert.svg);
display: inline-block;
margin-right: 0.4rem;
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/content/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
height: rem-calc(20px);
width: rem-calc(20px);
vertical-align: text-bottom;
background-image: url(../assets/icons/icon-alert.svg);
background-image: url(/assets/icons/icon-alert.svg);
display: inline-block;
margin-left: 0.4rem;
}
Expand All @@ -267,7 +267,7 @@

&--success {
i {
background-image: url(../assets/icons/icon_checked.svg);
background-image: url(/assets/icons/icon_checked.svg);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/form/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@
height: 20px;
width: 20px;
background-size: cover;
background-image: url(../assets/icons/icon-search.svg);
background-image: url(/assets/icons/icon-search.svg);
cursor: pointer;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/inputs/_search-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
height: 20px;
width: 20px;
background-size: cover;
background-image: url(../assets/icons/icon-search.svg);
background-image: url(/assets/icons/icon-search.svg);
cursor: pointer;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/inputs/_select-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@

&__dropdown-indicator {
display: block;
background-image: url(../assets/icons/icon_arrow_down.svg);
background-image: url(/assets/icons/icon_arrow_down.svg);
height: rem-calc(14px);
width: rem-calc(14px);
margin: rem-calc(0 2px);

&.menu-is-open {
background-image: url(../assets/icons/icon_arrow_up.svg);
background-image: url(/assets/icons/icon_arrow_up.svg);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/multi-select/_multi-select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@

&-down {
display: block;
background-image: url(../assets/icons/icon_arrow_down.svg);
background-image: url(/assets/icons/icon_arrow_down.svg);
height: 12px;
width: 12px;
background-size: 12px 12px;
Expand All @@ -124,7 +124,7 @@

&-up {
display: block;
background-image: url(../assets/icons/icon_arrow_up.svg);
background-image: url(/assets/icons/icon_arrow_up.svg);
height: 12px;
width: 12px;
background-size: 12px 12px;
Expand Down
4 changes: 2 additions & 2 deletions src/components/tabs/_tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
}

&__error-badge {
background-image: url(../assets/icons/icon_error.svg);
background-image: url(/assets/icons/icon_error.svg);
height: 14px;
width: 14px;
background-size: contain;
Expand All @@ -79,7 +79,7 @@
}

&__dirty-badge {
background-image: url(../assets/icons/icon_unsaved.svg);
background-image: url(/assets/icons/icon_unsaved.svg);
height: 14px;
width: 14px;
background-size: contain;
Expand Down
2 changes: 1 addition & 1 deletion src/leases/components/leaseSections/rent/_rent.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
color: $blue;

.link-icon {
background-image: url(../assets/icons/icon_link_green.svg);
background-image: url(/assets/icons/icon_link_green.svg);
height: rem-calc(20px);
width: rem-calc(20px);
margin-left: rem-calc(8px);
Expand Down

0 comments on commit fe673c4

Please sign in to comment.