discourse/app/assets/javascripts
Osama Sayegh 496f910f03
DEV: Various A11Y improvements for the new user menu (#18288)
This commit includes various accessibility improvements for the new user menu:

* Add `title` attributes to the user menu tabs
* Properly label lists (by adding `aria-labelledby` to `<ul>` elements) for screen readers
* Change the user menu structure so that the tabs come before the content panel in the DOM, but use CSS to reverse them visually.
  Normally, changing the order of elements via CSS is bad for accessibility, but I believe this is one of the rare scenarios where it [makes sense](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Ordering_Flex_Items#use_cases_for_order). Prior to this change, if you want to reach the first notification item after you select a tab using the keyboard, you have to hit <kbd>ctrl</kbd>+<kbd>tab</kbd> because the notifications list is before the tabs list. However, with this change, <kbd>tab</kbd> will move you to the first item in the list after you select a tab using your keyboard.
* Aria-hide the unread notifications badge/count on the tabs because the `title` attribute on the tab indicates the unread count.
* Add some tests.
2022-09-20 19:31:56 +03:00
..
admin DEV: update yes/no confirmation dialogs (#18181) 2022-09-14 11:06:56 -04:00
confirm-new-email DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
discourse DEV: Various A11Y improvements for the new user menu (#18288) 2022-09-20 19:31:56 +03:00
discourse-common Build(deps): Bump webpack in /app/assets/javascripts (#18214) 2022-09-11 22:35:55 +02:00
discourse-ensure-deprecation-order DEV: Silence 3.x deprecations 2022-07-19 10:00:59 +01:00
discourse-hbr Build(deps): Bump webpack in /app/assets/javascripts (#18214) 2022-09-11 22:35:55 +02:00
discourse-plugins Build(deps): Bump ember-cli-htmlbars in /app/assets/javascripts (#18212) 2022-09-11 14:53:34 +02:00
discourse-widget-hbs Build(deps): Bump webpack in /app/assets/javascripts (#18214) 2022-09-11 22:35:55 +02:00
docs
ember-addons
ember-cli-progress-ci DEV: Add progress output in CI during ember-cli build (#17977) 2022-08-17 22:39:52 +01:00
locales FEATURE: Add Croatian language (#17130) 2022-06-18 00:18:22 +02:00
pretty-text FIX: Empty inline BBCodes were broken (#18276) 2022-09-20 09:50:22 +10:00
select-kit Build(deps): Bump webpack in /app/assets/javascripts (#18214) 2022-09-11 22:35:55 +02:00
truth-helpers DEV: adds includes helper to templates (#18259) 2022-09-15 14:20:37 +02:00
wizard DEV: update yes/no confirmation dialogs (#18181) 2022-09-14 11:06:56 -04:00
.licensee.json DEV: Add Ember CLI workspace license checks (#16603) 2022-05-03 13:06:19 -04:00
.npmrc
admin-plugins.js.erb
discourse-js-processor.js DEV: Use DiscourseJsProcessor for theme template compilation (#18135) 2022-09-01 11:50:46 +01:00
handlebars-shim.js
mini-loader.js DEV: Support inline-hbs compilation in themes (#18112) 2022-08-29 19:53:42 +01:00
package.json DEV: Introduce flag for compiling Plugin JS with Ember CLI (#17965) 2022-08-22 09:56:39 +01:00
polyfills.js
service-worker.js.erb
yarn.lock Build(deps): Bump @babel/standalone in /app/assets/javascripts (#18266) 2022-09-16 02:05:44 +02:00