-
Notifications
You must be signed in to change notification settings - Fork 6
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
Feature/html5 autocomplete #146
base: main
Are you sure you want to change the base?
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
The code walkthrough steps currently talk more about how to create a form and all of the attributes, rather than how to include the autocomplete functionality and how it's accessible. The code highlighting of the steps also highlights a lot of extra lines that shouldn't be highlighted. We should probably rethink what steps are actually needed for autocomplete. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
chore: Reverting chromdriver back to version 124
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
content/bottom/autocomplete.php
Outdated
preflight: false, // disable preflight - prevents Tailwind from resetting all styles | ||
} | ||
} | ||
</script> |
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.
I would like to remove tailwind from this PR. The reasons are here.
We can discuss one-on-one if you like, of course.
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.
Ok, I will work on removing Tailwinds from this PR.
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.
Tailwinds has been removed.
expect(domInfo.hasLabel).toBe(true); | ||
} | ||
}); | ||
}); |
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.
I like the idea of checking forms with labels. Let's also ensure the autocomplete functionality you have implemented is also checked here as well.
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.
I have added tests to test autocomplete functionality.
cc:
@zoltan-dulac
This comment was marked as resolved.
This comment was marked as resolved.
Signed-off-by: josiahwilliams <[email protected]>
Tailwind has been removed and replaced with BEM and LESS. |
return document | ||
.querySelector('#first-name') | ||
.getAttribute('autocomplete'); | ||
}); |
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.
You are checking specific input fields for specific autocomplete values. This works for this case, but how about if I add form fields?
What I would like to do is have an array that contains all the possible form field autocomplete attributes (you can get them on the MDN autocomplete page) and check that all input fields have a valid autocomplete value.
This is much more scalable (e.g. How about if I decide to add another form field?)
givenNameInput.value = 'John'; | ||
givenNameInput.dispatchEvent( | ||
new Event('input', { bubbles: true }), | ||
); |
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.
I don't think we need to test if this stuff. Let's talk about it at standup.
http://localhost:8888/autocomplete.php