Fix(Accessibility): Add aria-expanded to presentation table controls
Adds the missing aria-expanded attribute to presentation table expand/collapse glyphs to fix a WCAG violation for screen readers.
This involves extending the Glyph component (PHP/Template) to support the attribute, setting the correct initial state in the Table/Renderer, and updating the attribute dynamically in presentationtable.class.js when the row state changes.
⚠️ This change currently does not pass the PHP Unit Tests, because they modify the HTML generated in these tests. To optimise time, we want to be sure that the implementation is correct, since if any additional changes are required, the tests will have to be updated again, with the corresponding time expenditure on this task. Therefore, we would appreciate feedback on these changes, and when we can confirm that they are adequate, we will update the tests in this same PR before performing the merge.
Hello @ZallaxDev. Thank you very much for your contribution and your PR. Please also provide PRs for releases 9, 11 and the trunk. Please have a look to the failed checks. Many thanks for your support. Best regards, @oliversamoila