diff --git a/ui/widgets/checkbox.h b/ui/widgets/checkbox.h index d3516297f..7b6f7ca1a 100644 --- a/ui/widgets/checkbox.h +++ b/ui/widgets/checkbox.h @@ -209,7 +209,11 @@ class Checkbox : public RippleButton, public ClickHandlerHost { return QAccessible::Role::CheckBox; } QString accessibilityName() override { - return _text.toString(); + // A checkbox with no label of its own - beside a poll answer, in a + // list row - is named by what stands for it, through the widget's + // accessible name. + const auto text = _text.toString(); + return text.isEmpty() ? RpWidget::accessibilityName() : text; } AccessibilityState accessibilityState() const override; void accessibilityDoAction(const QString &name) override;