Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report aria-label and aria-description even when parent has no visible children #16471

Merged
merged 8 commits into from
May 8, 2024
6 changes: 4 additions & 2 deletions nvdaHelper/vbufBackends/gecko_ia2/gecko_ia2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1262,11 +1262,13 @@ VBufStorage_fieldNode_t* GeckoVBufBackend_t::fillVBuf(
parentNode->isBlock=false;
}

if ((isInteractive || role == ROLE_SYSTEM_SEPARATOR) && parentNode->getLength() == 0) {
if ((isInteractive || role == ROLE_SYSTEM_SEPARATOR || name || description.has_value()) && parentNode->getLength() == 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should name be changed to name.has_value() here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not exactly, as name is a BSTR, not an optional<wstring>. I have checked that it's non-null and non-empty in my updated code though.

// If the node is interactive or otherwise relevant even when empty
// and it still has no content, render a space so the user can access the node.
previousNode = buffer->addTextFieldNode(parentNode, previousNode, EMPTY_TEXT_NODE);
if(previousNode&&!locale.empty()) previousNode->addAttribute(L"language",locale);
if(previousNode&&!locale.empty()) {
previousNode->addAttribute(L"language",locale);
seanbudd marked this conversation as resolved.
Show resolved Hide resolved
}
}
}

Expand Down
1 change: 1 addition & 0 deletions user_docs/en/changes.t2t
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ There are many minor bug fixes for applications, such as Thunderbird, Adobe Read
- In Windows 11, NVDA will announce alerts from voice typing and suggested actions including the top suggestion when copying data such as phone numbers to the clipboard (Windows 11 2022 Update and later). (#16009, @josephsl)
- NVDA will keep the audio device awake after speech stops, in order to prevent the start of the next speech being clipped with some audio devices such as Bluetooth headphones. (#14386, @jcsteh, @mltony)
- HP Secure Browser is now supported. (#16377)
- NVDA will now report figures with no accessible children, but with a label or description. (#14514)
-


Expand Down