RFR: 8361283: [Accessibility, macOS, VoiceOver] VoiceOver announced Tab items of JTabbedPane as RadioButton on macOS [v2]
Artem Semenov
asemenov at openjdk.org
Mon Jul 7 07:37:45 UTC 2025
On Mon, 7 Jul 2025 06:49:12 GMT, Abhishek Kumar <abhiscxk at openjdk.org> wrote:
>> Do it where it makes sense as part of the tab button implementation, rather than adding workarounds to the general implementation.
>>
>> Check the [super accessibilityRoleDescription] and if it returns nil, return your implementation.
>
>> Check the [super accessibilityRoleDescription] and if it returns nil, return your implementation.
>
> As I mentioned earlier in the description, `accessibility role description is fetched in accessibilityRoleDescription API in CommonComponentAccessiblity.m file, the sub-role passed as a parameter is nil, returned value is RadioButton`, [super accessibilityRoleDescription] will not return `nil`.
>
> Anyways, I don't see this method getting invoked in TabButtonAccessibility by a11y client.
Try to debug and investigate why [TabbuttonAccessibility accessibilityRoleDescription] is not being called. If you have already attempted to override it with the changes you need.
The logic of creating tabs in TabGroupAccessibility indicates that such an override should work.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26096#discussion_r2189231475
More information about the client-libs-dev
mailing list