Skip to content

Commit 25798ea

Browse files
committed
исправлены замечания от гугла
1 parent 9e5b539 commit 25798ea

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/components/bread-crumbs/bread-crumbs.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
$shadow-bread-crumbs: $shadow-section;
22
$background-bread-crumbs: $background-section;
3-
$color-link: $color-grey-hover;
4-
$color-link-hover: $color-dark-grey;
5-
$color-last-hover: $color-grey-hover;
3+
$color-link: #4f4f4f;
4+
$color-link-hover: $color-grey-hover;
5+
$color-last-hover: #4f4f4f;
66
$font-size-bread-crumbs: 13px;
77
$outline-link: $color-outline;
88

src/components/search-form/search-form.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ mixin search-form()
33
const BASE_CLASS = 'search-form';
44
55
form(class = `${BASE_CLASS}` role="search" method="get" action="https://frontendx.ru/")
6-
input(class = `${BASE_CLASS}__input` value="" placeholder="Найти статью" name="s")
6+
input(class = `${BASE_CLASS}__input` type="text" value="" placeholder="Найти статью" aria-label="Поиск" name="s")
77
button(class = `${BASE_CLASS}__button` type = "submit" value="Поиск")
88
<svg class = "search-form__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><title>Найти запись</title><path d="M508.5 468.9L387.1 347.5c-2.3-2.3-5.3-3.5-8.5-3.5h-13.2c31.5-36.5 50.6-84 50.6-136C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c52 0 99.5-19.1 136-50.6v13.2c0 3.2 1.3 6.2 3.5 8.5l121.4 121.4c4.7 4.7 12.3 4.7 17 0l22.6-22.6c4.7-4.7 4.7-12.3 0-17zM208 368c-88.4 0-160-71.6-160-160S119.6 48 208 48s160 71.6 160 160-71.6 160-160 160z"></path></svg>

src/components/tags/Tags.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ class Tags {
299299

300300
this.slider.setPointerCapture(event.pointerId);
301301
this.shiftY = event.clientY - this.slider.getBoundingClientRect().top;
302-
this.track.addEventListener('pointermove', this.handleSliderPointerMove);
302+
this.track.addEventListener('pointermove', this.handleSliderPointerMove, { passive: true });
303303
this.track.addEventListener('pointerup', this.handleSliderPointerUp);
304304

305305
return true;
@@ -403,9 +403,9 @@ class Tags {
403403

404404
if (this.tags) {
405405
this.tags.addEventListener('focusin', this.handleTagsFocusin);
406-
this.tags.addEventListener('wheel', this.handleTagsWheel);
407-
this.tags.addEventListener('touchstart', this.handleTagsTouchStart);
408-
this.tags.addEventListener('touchmove', this.handleTagsTouchMove);
406+
this.tags.addEventListener('wheel', this.handleTagsWheel, { passive: true });
407+
this.tags.addEventListener('touchstart', this.handleTagsTouchStart, { passive: false });
408+
this.tags.addEventListener('touchmove', this.handleTagsTouchMove, { passive: false });
409409
}
410410

411411
window.addEventListener('mouseover', this.handleWindowMouseOver);

src/components/tags/tags.pug

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ mixin tags(options = {})
2424
a(class = `${BASE_CLASS}__item-link` href = "https://change-me")= `Тег#${length++}`
2525

2626
div(class = `${BASE_CLASS}__scrollbar js-${BASE_CLASS}__scrollbar`)
27-
button(class = `${BASE_CLASS}__scrollbar-button-up js-${BASE_CLASS}__scrollbar-button-up` tabindex = -1)
28-
div(class = `${BASE_CLASS}__scrollbar-track js-${BASE_CLASS}__scrollbar-track`)
29-
div(class = `${BASE_CLASS}__scrollbar-slider js-${BASE_CLASS}__scrollbar-slider`)
30-
button(class = `${BASE_CLASS}__scrollbar-button-down js-${BASE_CLASS}__scrollbar-button-down` tabindex = -1)
27+
button(class = `${BASE_CLASS}__scrollbar-button-up js-${BASE_CLASS}__scrollbar-button-up` aria-label="Прокрутить вверх" tabindex = -1)
28+
div(class = `${BASE_CLASS}__scrollbar-track js-${BASE_CLASS}__scrollbar-track` aria-label="Полоса прокрутки")
29+
div(class = `${BASE_CLASS}__scrollbar-slider js-${BASE_CLASS}__scrollbar-slider` aria-label="Ползунок скролла")
30+
button(class = `${BASE_CLASS}__scrollbar-button-down js-${BASE_CLASS}__scrollbar-button-down` aria-label="Прокрутить вниз" tabindex = -1)
3131

3232

0 commit comments

Comments
 (0)