Closed heybran closed 3 months ago
After fixes, all buttons are focus visible to users as they navigate with keyboards . Will play with UI a bit more and see if there are more areas that need improvement.
https://github.com/pods-framework/pods/assets/75633537/f5eca59f-6792-4833-8dbe-3ca62b6c0784
Sorry, just noticed my commit ended with a huge git diff on this file ui/js/dfv/src/admin/edit-pod/main-tabs/field-list-item.js
https://github.com/heybran/pods/commit/b18c5b81e028cf95aba226c1306c30aaf000500a, it was caused by my VS Code indent setting.
Please see this comment https://github.com/heybran/pods/commit/b18c5b81e028cf95aba226c1306c30aaf000500a#r128990258
Hi @sc0ttkclark, I think I can close this issue as PR for this one has been merged and released.
Problem to Solve
1.
pods-field_name
does not have tab focus indicator/outline.The
compan_name
here is currently being focused by Tab, but we're using adiv
as abutton
, it loses the default browser outline so users have no ideas where they're currently focused on.https://github.com/pods-framework/pods/blob/main/ui/js/dfv/src/admin/edit-pod/main-tabs/field-list-item.js#L247
2.
Edit
/Duplicate
/Delete
buttonsSimilar to first issue, these buttons should be visible when they're tabbed into, on the screenshot they're visible as I'm currently hovering on the field wrapper with my mouse.
Proposed Solution
Replace
div
withbutton
but style it as text button or add focus outline todiv[tabindex="0"]
Add a
focus:within
topods-field_outer-wrapper
to showEdit
/Duplicate
/Delete
buttons.Possible Workaround
No response
Examples Elsewhere
No response
Screenshots / Screencast
No response