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
We have the pat-focus pattern. As far as I understand, the functionality can completely be replicated with pure CSS. Instead of adding focus classes on fields and fieldsets, we can use this selectors:
:focus {
/* selects an element, which is focused */
}
:has(:focus) {
/* selects an element where at least one of it's children is focused */
}
:focus-within {
/* same as above */
}
This question popped up while debugging a problem with pat-focus where it breaks pattern registration/scanning when used with pat-leaflet.
Yes, this is slowly happening whenever Daniel is touching something. But at the moment there is no value in making this a one time effort. I move this into Backlog.
Activity
[-]obsolete pattern "focus"?[/-][+]Obsolete pattern "focus"?[/+]pilz commentedon Nov 17, 2025
Yes, this is slowly happening whenever Daniel is touching something. But at the moment there is no value in making this a one time effort. I move this into Backlog.