mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-09 07:50:14 +08:00
This change adjusts the markup and aria tags so that the like and read counts on posts will read who liked/read when clicked. Previously this content was inaccessible to screen readers.  This change required: * Keeping the empty containing divs present and adding `aria-live` tags (if the `aria-live` tag isn't initially present in the DOM, it will not read changes to the content within) * Adjusting some styles to avoid extra margin from the empty div (added a conditional class to add the margin back when expanded) * Cleaned up the aria tags, we don't need to hide the "liked this" text, as it will be read naturally after the usernames like "username1, username2, liked this" This allows us to remove the screenreader only description. * Removed "Click to view" from the button label, the interactivity is inherent because the screenreader identifies it as a button |
||
|---|---|---|
| .. | ||
| environments | ||
| initializers | ||
| locales | ||
| application.rb | ||
| boot.rb | ||
| cdn.yml.sample | ||
| database.yml | ||
| deploy.rb.sample | ||
| dev_defaults.yml | ||
| discourse.config.sample | ||
| discourse.pill.sample | ||
| discourse_defaults.conf | ||
| environment.rb | ||
| logrotate.conf | ||
| multisite.yml.production-sample | ||
| nginx.sample.conf | ||
| projections.json | ||
| puma.rb | ||
| routes.rb | ||
| sidekiq.yml | ||
| site_settings.yml | ||
| spring.rb | ||
| thin.yml.sample | ||
| unicorn.conf.rb | ||
| unicorn_launcher | ||
| unicorn_upstart.conf | ||