diff --git a/qt/aqt/data/web/css/reviewer-bottom.scss b/qt/aqt/data/web/css/reviewer-bottom.scss index e124ce05f..67081ad45 100644 --- a/qt/aqt/data/web/css/reviewer-bottom.scss +++ b/qt/aqt/data/web/css/reviewer-bottom.scss @@ -49,12 +49,7 @@ button { margin-bottom: 1em; } -/** - * We use .focus to recreate the highlight on the good button - * while the actual focus is actually in the main webview - */ -:focus, -.focus { +:focus { outline: 1px auto var(--focus-color); .nightMode & { @@ -63,14 +58,6 @@ button { } } -#innertable:focus-within .focus:not(:focus) { - outline: none; - - .nightMode & { - box-shadow: none; - } -} - .nobold { font-weight: normal; display: inline-block; diff --git a/qt/aqt/reviewer.py b/qt/aqt/reviewer.py index a6a35a350..e200b41a3 100644 --- a/qt/aqt/reviewer.py +++ b/qt/aqt/reviewer.py @@ -763,7 +763,7 @@ time = %(time)d; def _showAnswerButton(self) -> None: middle = """ {}
-""".format( +""".format( self._remaining(), tr.actions_shortcut_key(val=tr.studying_space()), tr.studying_show_answer(), @@ -851,7 +851,7 @@ time = %(time)d; def but(i: int, label: str) -> str: if i == default: - extra = """id="defease" class="focus" """ + extra = """id="defease" """ else: extra = "" due = self._buttonTime(i, v3_labels=labels)