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 #1467

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

Develop #1467

wants to merge 4 commits into from

Conversation

AnOvramenko
Copy link

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 meeting the task requirements! 🎉 Your code is functional and well-structured. While there are a few minor improvements suggested, such as renaming the function for clarity and ensuring the SCSS is compiled to CSS, these do not impact the core functionality. Keep up the good work and consider these suggestions for future enhancements! 😊

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

@@ -12,6 +12,7 @@
href="./styles/main.scss"

Choose a reason for hiding this comment

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

The stylesheet is linked as a SCSS file (main.scss). Browsers cannot directly interpret SCSS files. You should compile the SCSS to CSS and link the resulting CSS file instead.

Comment on lines 14 to 27
function labelAndPholders(inputs) {
for (const item of inputs) {
const el = document.createElement('label');

el.className = 'label__field';
el.setAttribute('for', `${item.id}`);
el.innerHTML = item.name.toUpperCase();
// el.style.fontSize = '12px';

item.placeholder = item.name.charAt(0).toUpperCase() + item.name.slice(1);

item.insertAdjacentElement('beforebegin', el);
}
}

Choose a reason for hiding this comment

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

The function labelAndPholders is named in a way that might be confusing. Consider renaming it to something more descriptive, like addLabelsAndPlaceholders, to better convey its purpose.

el.innerHTML = item.name.toUpperCase();
// el.style.fontSize = '12px';

item.placeholder = item.name.charAt(0).toUpperCase() + item.name.slice(1);

Choose a reason for hiding this comment

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

The placeholder text is set to the capitalized name of the input field. Ensure that the name attribute of each input field is appropriately descriptive, as this will directly affect the placeholder text.

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