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

fix: Improve ARIA labelling fold controls #5205

Merged
merged 21 commits into from
Jun 20, 2023

Conversation

akoreman
Copy link
Contributor

Description of changes: For a11y compliance, buttons that show/hide content should have an aria-expanded state. This adds that state and changes the aria label accordingly.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov
Copy link

codecov bot commented Jun 13, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01 🎉

Comparison is base (538b18c) 87.19% compared to head (54b8e6c) 87.20%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5205      +/-   ##
==========================================
+ Coverage   87.19%   87.20%   +0.01%     
==========================================
  Files         565      565              
  Lines       45121    45161      +40     
  Branches     6910     6914       +4     
==========================================
+ Hits        39342    39382      +40     
  Misses       5779     5779              
Flag Coverage Δ
unittests 87.20% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/keyboard/gutter_handler_test.js 99.54% <100.00%> (+0.07%) ⬆️
src/layer/gutter.js 91.14% <100.00%> (+0.15%) ⬆️
src/lib/app_config.js 76.53% <100.00%> (+0.48%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@akoreman akoreman marked this pull request as draft June 13, 2023 22:02
@akoreman akoreman marked this pull request as ready for review June 14, 2023 21:21
demo/i18n.html Outdated
Comment on lines 75 to 77
"Unfold rows $0 to $1": "",
"Code folding, rows $0 through $1": "",
"Code folding, row $0": "",
"Unfold code": "",
"Fold at row $0": "",
Copy link
Contributor

Choose a reason for hiding this comment

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

if someone was using the old translation keys, what is going to happen? can we at least show a warning? can we support both by deprecating the old one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added a warning when a Ace tries to replace a string using the nls function but can't find a translation in the provided messages.

Copy link
Contributor

Choose a reason for hiding this comment

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

Does this mean this is a breaking change? If so, can we avoid it or is it intentional?

Copy link
Contributor

@whazor whazor left a comment

Choose a reason for hiding this comment

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

looks nice!

@InspiredGuy InspiredGuy merged commit dad5e6f into ajaxorg:master Jun 20, 2023
3 checks passed
@akoreman akoreman deleted the aria-expanded-fold branch June 20, 2023 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants