- Issue created by @rkoller
- 🇺🇸United States bernardm28 Tennessee
I wonder if tabindex="-1" would be good enough or would there be a better way.
Note: tabindex="-1" may be useful for elements that should not be navigated directly using the Tab key, but need to have keyboard focus set to them. Examples include an off-screen modal window that should be focused when it comes into view, or a form submission error message that should be immediately focused when an errant form is submitted.
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabi...
- 🇺🇸United States bernardm28 Tennessee
After chatting with Mike Herchel about this. He recommended we get rid of the x altogether and use the standard HTML web search element instead of input.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/search - 🇩🇪Germany rkoller Nürnberg, Germany
re #2: yes Scott o Hara is simply adding a tabbindex of -1 for excluding the element from the tab order.
re #3 problem going with the search element is that the clear button is then based on the browser and styling and behavior differs in between browsers. firefox for example doesnt have a clear button at all.
- 🇺🇸United States chrisfromredfin Portland, Maine
Yes, and standard search clear button then doesn't allow refreshing the results in a good way - see ✨ Ability to clear keyword/search filter with one click Needs work .
let's do the tabindex -1 approach.
- 🇺🇸United States kwiseman
kwiseman → changed the visibility of the branch 3444658-remove-the-clear to hidden.
- Merge request !465Fix #3444658: Remove the clear button from the tab order → (Merged) created by kwiseman
- Status changed to Needs review
9 months ago 7:02pm 8 May 2024 -
chrisfromredfin →
committed a07f80d4 on 1.0.x authored by
kwiseman →
Issue #3444658: Remove the clear button from the tab order
-
chrisfromredfin →
committed a07f80d4 on 1.0.x authored by
kwiseman →
- Status changed to Fixed
9 months ago 7:42pm 8 May 2024 - 🇺🇸United States chrisfromredfin Portland, Maine
confirmed pre-MR and post-MR that this fixes it. ship it!Will open a follow-up cuz I already merged before I realized this probably should have a test...
Automatically closed - issue fixed for 2 weeks with no activity.