Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #4428

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Develop #4428

wants to merge 3 commits into from

Conversation

hma-3
Copy link

@hma-3 hma-3 commented Aug 14, 2024

  • DEMO LINK

  • TEST REPORT LINK

  • Icon implemented using background-image CSS property

  • Inputs are written inside of 'form' tag with correctly passed attributes

  • All Typical Mistakes from BEM lesson theory are checked.

  • Code follows all the Code Style Rules ❗️

Copy link

@VolodymyrKirichenko VolodymyrKirichenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall - good job, but let's improve your code

src/index.html Outdated
Comment on lines 31 to 34
<a
href="#"
class="search-form__search-icon search-form__search-icon--large"
></a>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tag a?But why?

Copy link
Author

@hma-3 hma-3 Aug 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought it should be interactive in future - like buttons, so to do that I used a

Comment on lines 6 to 7
html,
input {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
html,
input {
html {
Знімок екрана 2024-08-14 о 15 16 04

height: 42px;
}

/* #endregion */

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove all the comments


/* #region hover */
.search-form--large:hover {
box-shadow: 0 4px 4px #00000040;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use variables for all colors

Comment on lines 3 to 4
@import 'blocks/search-form.css';
@import 'blocks/search-icon.css';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we move it to one file?

Copy link

@VolodymyrKirichenko VolodymyrKirichenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pay attention to my comments. Fix it If you keep up with all your homework
Try to use them in the future and well done! 👍

src/index.html Outdated
Comment on lines 31 to 34
<a
href="#"
class="search-form__search-icon"
></a>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why y need links in this place?use span

Comment on lines 36 to 46
.search-form__input--small:focus {
text-shadow: none;
}

.search-form--small .search-form__input:active {
text-shadow: none;
}

.search-form--small .search-form__input:hover {
text-shadow: none;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are duplicating too much code

}

html,
.search-form__input {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this class should not be here

Comment on lines 21 to 27
.search-form--large:hover {
box-shadow: 0 4px 4px var(--box-shadow-dark-color);
}

.search-form--small:hover {
box-shadow: 0 3px 8px var(--box-shadow-darker-color);
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use it for general class. do not duplicate

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't quite understand. How do I combine them if they have different styles?

Comment on lines 46 to 56
.search-form--large .search-form__search-icon {
min-height: 19px;
min-width: 19px;
margin: 0 17px 0 26px;
}

.search-form--small .search-form__search-icon {
min-height: 11px;
min-width: 11px;
margin: 0 9px 0 13px;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not just .search-form__search-icon?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added modifier only to the parent block and elements of these blocks has different styles, so that was the only solution I could think of

Comment on lines 13 to 19
.search-form--large .search-form__input {
font-size: 16px;
}

.search-form--small .search-form__input {
font-size: 14px;
font-weight: 400;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can create a generic class for input and modifiers.
always use onle 1 class, otherwise it will confuse you and make your code less readable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants