Skip to content

Commit

Permalink
refactor:refactor swutch-language tag from a to button
Browse files Browse the repository at this point in the history
  • Loading branch information
ab3MN committed Oct 23, 2024
1 parent d0964ca commit 5aac521
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 12 deletions.
14 changes: 4 additions & 10 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,10 @@
href="#menu"
class="icon header__icon icon-menu"
></a>
<a
href="#"
class="header__switch-language"
>
<button class="header__switch-language">
UA
<span class="icon header__icon-dropdown icon-dropdown"></span>
</a>
</button>
</div>
</div>

Expand Down Expand Up @@ -80,13 +77,10 @@ <h6 class="header__date-desctop">10.08 - 10.10</h6>
></a>

<div class="menu__icons">
<a
href="#"
class="menu__switch-language"
>
<button class="menu__switch-language">
UA
<span class="icon menu__icon-dropdown icon-dropdown"></span>
</a>
</button>

<a
href="#"
Expand Down
7 changes: 7 additions & 0 deletions src/styles/base/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,10 @@ textarea {
textarea {
resize: none;
}

button {
background: none;
border: none;
outline: none;
transition: $transition-time ease-in-out;
}
3 changes: 3 additions & 0 deletions src/styles/components/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
column-gap: 0.5rem;
display: none;

@include font(1.6rem, 2.4rem, 400);
@extend %font-raleway;

@include media-tablet {
display: flex;
}
Expand Down
4 changes: 4 additions & 0 deletions src/styles/components/_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@

&__switch-language {
column-gap: 0.5rem;

@include font(1.6rem, 2.4rem, 400);
@extend %font-raleway;

&:hover {
color: $color-main;
> .icon {
Expand Down
21 changes: 20 additions & 1 deletion src/styles/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5aac521

Please sign in to comment.