-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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 #4383
base: master
Are you sure you want to change the base?
DEVELOP #4383
Conversation
Yatsomo
commented
Jul 18, 2024
•
edited
Loading
edited
- DEMO LINK
- TEST REPORT LINK
The checks pass in VSC but fail on GitHub? How so? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
color: #3d4e61; | ||
} | ||
|
||
.searchbar__big { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try to use modifier instead
|
||
.searchbar__small { | ||
height: 42px; | ||
background-position: 12px 14px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be 13px 15px
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When its like that the test comes back negative. Should I still change it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it fails test then don't change it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job.
data-qa="big" | ||
> | ||
<input | ||
class="searchbar__input searchbar__big" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its great case to use modifier class name like this searchbar__input searchbar__input--big
<input | ||
class="searchbar__input searchbar__big" | ||
type="text" | ||
name="searchbar__bar searchbar__big" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is weird value for name property. It is primarily used in form elements to identify input fields when they are submitted to a server.
} | ||
|
||
.searchbar { | ||
margin: 20px 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this task its okay. But remember that if you want to configure the external geometry or positioning of a block, use separate classes or mix-ins to separate external properties (positioning, margins) from internal properties (padding). This approach helps avoid conflicts between element styles.
|
||
.searchbar__small { | ||
height: 42px; | ||
background-position: 12px 14px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it fails test then don't change it.