Skip to content
Snippets Groups Projects

Refactor Cart into checkerboard table

Merged Mateusz Kudela requested to merge mkudela/issue-173 into develop
Compare and Show latest version
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -160,9 +160,10 @@ class CartItem(CliveCheckerboardTableRow, CliveWidget):
def focus(self, _: bool = True) -> Self: # noqa: FBT001, FBT002
def focus_first_focusable_button() -> None:
buttons = self.query(CliveButton)
for button in reversed(buttons):
for button in buttons:
if button.focusable:
button.focus()
break
focused = self.app.focused
if not focused:
Loading