-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add password components for Vue 2 and Vue 3 #21
Conversation
Only root `node_modules` was ignored.
@meduzen We can improve a little bit the accessibility by adding :
|
Indeed, the user wasn’t warned of anything when using the button. Nice catch! Actually your suggestion is the only one working everywhere (using Voice Over). So, when the button is activated, 3 things must change:
Changes I’ll do
At the beginning I wanted to keep the ResultsResults using Voice Over (macOS Big Sur 11.6.4)Firefox (97.0.1) doesn’t care about the separated
Safari (15.3) does the reverse and only announces the state separated
Chromium (Edge 100.0.1167.0) browsers announce the button state change then the separated
A the end, the Here is why it’s confusing.Add the beginning, I tried combinations of
(1) It actually says “Show password, bouton” when focusing the button, but it doesn’t repeat « bouton » when we’re already on it and we activate it. When using In the current state of the PR, both the Resources
That match the note (1) about the new state not being announced without Only changing the inner text of a button mostly fails everywhere.
They went for the same approach, except they prefer to change the text label instead of using Also, various test cases (mostly from previous links): |
See [PR comments](#21 (comment)) for details.
Re-reviewable. @EmmaPepin |
Self-note: import from |
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.
What do you think? |
It’s easier if we want to test `required`, even if not used.
Was an empty string or the error message instead of `true` or `false`.
Also move `vue` as a dev dependency, which should ship less files
I made some updates. There’s rather a lot, so I also published version
Everything is normally in the changelog and the docs. |
I’ve noticed using |
Merging. 🎉 We will open issue for remaining comments. |
The Vue 2 component is in
packages/vue-2-password
.The Vue 3+ component is in
packages/vue-password
.None of them are currently published. But we can surely publish a 1.0.0-rc.1 to test them.
The component
It is the same as in this PR, with the following changes:
in-modal
prop (putting a different background);nanoid
instead ofuuid
(better, smaller, faster).Aside from the component
Each folder has:
src/App.vue
) that can be run withnpm run serve
(Side note: Vue 2 component has a
Password-ts.vue
file in addition toPassword.vue
. It’s useless, but I kept it for history.)Next steps