fromCSS-Tricks1 week agoWeb developmentThere is No Need to Trap Focus on a Dialog Element | CSS-TricksUsing the native <dialog> element (and inert) removes the need to manually trap keyboard focus; focus-trapping is outdated when native dialog behavior is used.
fromCSS-Tricks1 week agoUX designThere is No Need to Trap Focus on a Dialog Element | CSS-TricksUsing the native <dialog> element with showModal removes the need to trap focus; focus-trapping is outdated when dialog and inert are available.
fromCSS-Tricks1 week agoWeb developmentThere is No Need to Trap Focus on a Dialog Element | CSS-Tricks