You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Focus a default button instead of a close button in dialogs #1714
Thanks. The analogous issue for the side modal is #440, which we fixed in #930 by deleting the X button (lol), which automatically made the focus go to the thing we wanted. We may be able to do the same thing here.
I actually re introduced the close button on the pane, and have it absolutely positioned that way it isn’t the first interactive element. A potential solution here too
Activity
david-crespo commentedon Aug 8, 2023
Thanks. The analogous issue for the side modal is #440, which we fixed in #930 by deleting the X button (lol), which automatically made the focus go to the thing we wanted. We may be able to do the same thing here.
benjaminleonard commentedon Aug 8, 2023
I actually re introduced the close button on the pane, and have it absolutely positioned that way it isn’t the first interactive element. A potential solution here too
just-be-dev commentedon Aug 8, 2023
Yeah, we can change the initially focused element so it shouldn't be a problem.Going back to our previous solution, the easiest thing is just to remove it. I'll play with it a little bit though, I have some ideas.
benjaminleonard commentedon Aug 8, 2023
Here's the solution for the pane:
console/libs/ui/lib/side-modal/SideModal.tsx
Lines 185 to 194 in 7638530