Skip to content

Commit

Permalink
Добавляет условие для кнопок
Browse files Browse the repository at this point in the history
  • Loading branch information
TatianaFokina committed May 28, 2024
1 parent 827a262 commit e8ba52e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/includes/blocks/header.njk
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@

{% include "blocks/search.njk" %}

{# TODO: включить в условие, что это not isSearchPage #}
{% if not isMainPage %}
{% if (not isMainPage) and (not isSearchPage) %}
<div class="header__hamburger">
<span class="hotkey hotkey--search font-theme font-theme--code">
Клавиша <kbd class="hotkey__key">/</kbd>
Expand Down Expand Up @@ -105,10 +104,10 @@
</div>
{% endif %}

{# TODO: сделать универсальный класс для кнопок в хедере, не hamburger #}
{% if isSearchPage %}
{# TODO: задать другой класс для кнопки. Она тут не закрывает, а удаляет #}
<button
class="hamburger hamburge--reset"
class="search__reset-button hamburger"
type="reset"
form="search-form"
>
Expand Down
1 change: 0 additions & 1 deletion src/includes/blocks/search.njk
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
{% if permalink == isSearchPage %}aria-describedby="search-hint"{% endif %}
>

{# TODO: перенести в header.njk? #}
{% if isMainPage %}
<span class="search__key hotkey hotkey--search">
Клавиша <kbd class="hotkey__key">/</kbd>
Expand Down

0 comments on commit e8ba52e

Please sign in to comment.