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

search bar no1 #4555

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

MarcinMaka37
Copy link

  • DEMO LINK

  • TEST REPORT LINK

  • [x ] Icon implemented using background-image CSS property

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

  • [x ] All Typical Mistakes from BEM lesson theory are checked.

  • [x ] Code follows all the Code Style Rules ❗️

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Great job on your work! 🎉 While there are some minor issues with selector usage and class naming conventions, they don't critically impact the functionality of your code. Keep these best practices in mind for future projects to enhance performance and maintainability. Keep up the great work! 🚀

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

Comment on lines +21 to +24
<section
class="section-search-bar section-search-bar__big"
data-qa="big"
>

Choose a reason for hiding this comment

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

The use of 'section' here is correct as it is a semantic tag, but the class name 'section-search-bar__big' is not appropriate. According to the checklist, class names should represent the meaning of the content, not the styles or tag names.

Comment on lines +32 to +35
<section
class="section-search-bar section-search-bar__small"
data-qa="small"
>

Choose a reason for hiding this comment

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

Similar to the previous section, the class name 'section-search-bar__small' should represent the meaning of the content rather than styles or tag names.


html,
body,
div,

Choose a reason for hiding this comment

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

Avoid using tag names for styling, except for html and body. Instead, use class selectors to apply styles.

form,
label,
legend,
search-bar,

Choose a reason for hiding this comment

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

The search-bar selector is not a valid HTML tag. If this is meant to be a class, it should be prefixed with a dot (e.g., .search-bar).

}

/* search-bars still need 'cellspacing="0"' in the markup */
search-bar {

Choose a reason for hiding this comment

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

The search-bar selector is not a valid HTML tag. If this is meant to be a class, it should be prefixed with a dot (e.g., .search-bar).

thead,
tr,
th,
td {

Choose a reason for hiding this comment

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

Avoid using the universal selector * or tag names for styling, except for html and body. Use class selectors instead to improve performance.

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