Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ui/widgets/checkbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down