diff --git a/src/pyj/widgets.pyj b/src/pyj/widgets.pyj index ae8f98b18b..c71b618d22 100644 --- a/src/pyj/widgets.pyj +++ b/src/pyj/widgets.pyj @@ -14,7 +14,7 @@ def create_button(text, icon=None, action=None, tooltip=None, highlight=False, d if icon: ic = svgicon(icon) text = '\xa0' + text - ans = E.a(ic, E.span(text), class_='calibre-push-button', href='javascript: void(0)', title=tooltip or '') + ans = E.a(ic, E.span(text), class_='calibre-push-button', href='javascript: void(0)', role='button', title=tooltip or '') if download_filename and v'"download" in ans': ans.setAttribute('download', download_filename) if action is not None: