The button to close a popup is made from a non-interactive div element.
The reading software cannot tell its user that these are buttons because they miss the correct role. Now these buttons are coded as neutral (non-interactive) div elements. In addition, the reading software does not know what the function (name) of these buttons is.
The most robust solution is to use the native HTML elements such as button elements. Another possible solution is to use WAI-ARIA.
The button to close a popup is made from a non-interactive div element.
The reading software cannot tell its user that these are buttons because they miss the correct role. Now these buttons are coded as neutral (non-interactive) div elements. In addition, the reading software does not know what the function (name) of these buttons is.
The most robust solution is to use the native HTML elements such as button elements. Another possible solution is to use WAI-ARIA.