Skip to content

Commit 2a222e9

Browse files
committed
Refactor: Changed alt of images and fill of VSG (currentColor).
1 parent e6eade1 commit 2a222e9

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/js/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function renderOneSeries(series) {
116116
const imgSeries = document.createElement('img');
117117
imgSeries.classList.add('results__img');
118118
imgSeries.src = `${series.image}`;
119-
imgSeries.alt = `${series.name}`;
119+
imgSeries.alt = `Portada de ${series.name}`;
120120
liSeries.appendChild(imgSeries);
121121

122122
// Creación del <p>
@@ -146,7 +146,7 @@ function renderOneFav(favorite) {
146146
const imgFav = document.createElement('img');
147147
imgFav.classList.add('favorites__img');
148148
imgFav.src = `${favorite.image}`;
149-
imgFav.alt = `${favorite.name}`;
149+
imgFav.alt = `Portada de ${favorite.name}`;
150150
liFav.appendChild(imgFav);
151151

152152
// Creación de <p>
@@ -168,7 +168,7 @@ function renderOneFav(favorite) {
168168
height="24px"
169169
viewBox="0 -960 960 960"
170170
width="24px"
171-
fill="#e0fbfc">
171+
fill="currentColor">
172172
<path
173173
d="m480-120-58-52q-101-91-167-157T150-447.5Q111-500 95.5-544T80-634q0-94 63-157t157-63q52 0 99 22t81 62q34-40 81-62t99-22q94 0 157 63t63 157q0 46-15.5 90T810-447.5Q771-395 705-329T538-172l-58 52Zm0-108q96-86 158-147.5t98-107q36-45.5 50-81t14-70.5q0-60-40-100t-100-40q-47 0-87 26.5T518-680h-76q-15-41-55-67.5T300-774q-60 0-100 40t-40 100q0 35 14 70.5t50 81q36 45.5 98 107T480-228Zm0-273Z"/>
174174
</svg>
@@ -180,7 +180,7 @@ function renderOneFav(favorite) {
180180
height="24px"
181181
viewBox="0 -960 960 960"
182182
width="24px"
183-
fill="#e0fbfc">
183+
fill="currentColor">
184184
<path
185185
d="M481-83Q347-218 267.5-301t-121-138q-41.5-55-54-94T80-620q0-92 64-156t156-64q45 0 87 16.5t75 47.5l-62 216h120l-34 335 114-375H480l71-212q25-14 52.5-21t56.5-7q92 0 156 64t64 156q0 48-13 88t-55 95.5q-42 55.5-121 138T481-83Zm-71-186 21-211H294l75-263q-16-8-33.5-12.5T300-760q-58 0-99 41t-41 99q0 31 11.5 62t40 70.5q28.5 39.5 77 92T410-269Zm188-48q111-113 156.5-180T800-620q0-58-41-99t-99-41q-11 0-22 1.5t-22 5.5l-24 73h116L598-317Zm110-363ZM294-480Z"/>
186186
</svg> `;

src/scss/components/_search-and-favs.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373

7474
background-color: var(--color-bg);
7575
border: none;
76+
color: var(--color-text);
7677

7778
cursor: pointer;
7879

0 commit comments

Comments
 (0)