diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 49682869b..b914e0a93 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -21,6 +21,7 @@ Changelog * Removed version number from the logo link’s title. The version can now be found under the Settings menu (Thibaud Colas) * Added "don't delete" option to confirmation screen when deleting images, documents and modeladmin models (Kevin Howbrook) * Added `branding_title` template block for the admin title prefix (Dillen Meijboom) + * Add image dimensions in image gallery and image choosers for screen reader users (Helen Chapman) * Fix: ModelAdmin no longer fails when filtering over a foreign key relation (Jason Dilworth, Matt Westcott) * Fix: The Wagtail version number is now visible within the Settings menu (Kevin Howbrook) * Fix: Scaling images now rounds values to an integer so that images render without errors (Adrian Brunyate) @@ -39,6 +40,7 @@ Changelog * Fix: Screen readers now announce "Dashboard" for the main nav’s logo link instead of Wagtail’s version number (Thibaud Colas) * Fix: Screen readers now treat page-level action dropdowns as navigation instead of menus (Helen Chapman) * Fix: Make icon font implementation more screen-reader-friendly (Thibaud Colas) + * Fix: Remove duplicate labels in image gallery and image choosers for screen reader users (Helen Chapman) 2.5.1 (07.05.2019) diff --git a/docs/releases/2.6.rst b/docs/releases/2.6.rst index 7e7b5130d..bf119e8f0 100644 --- a/docs/releases/2.6.rst +++ b/docs/releases/2.6.rst @@ -30,6 +30,7 @@ Other features * Removed version number from the logo link’s title. The version can now be found under the Settings menu (Thibaud Colas) * Added "don't delete" option to confirmation screen when deleting images, documents and modeladmin models (Kevin Howbrook) * Added ``branding_title`` template block for the admin title prefix (Dillen Meijboom) + * Add image dimensions in image gallery and image choosers for screen reader users (Helen Chapman) Bug fixes ~~~~~~~~~ @@ -52,6 +53,7 @@ Bug fixes * Screen readers now announce "Dashboard" for the main nav’s logo link instead of Wagtail’s version number (Thibaud Colas) * Screen readers now treat page-level action dropdowns as navigation instead of menus (Helen Chapman) * Make icon font implementation more screen-reader-friendly (Thibaud Colas) + * Remove duplicate labels in image gallery and image choosers for screen reader users (Helen Chapman) Upgrade considerations diff --git a/wagtail/images/templates/wagtailimages/images/results.html b/wagtail/images/templates/wagtailimages/images/results.html index 0640896e5..2f4f98c73 100644 --- a/wagtail/images/templates/wagtailimages/images/results.html +++ b/wagtail/images/templates/wagtailimages/images/results.html @@ -20,7 +20,13 @@
  • {% include "wagtailimages/images/results_image.html" %} -

    {{ image.title|ellipsistrim:60 }}

    + + {% trans "pixels" as translated_pixels %} +

    {{ image.title|ellipsistrim:60 }} + + {{ image.width }} {{ translated_pixels }} × {{ image.height }} {{ translated_pixels}} + +

  • {% endfor %} diff --git a/wagtail/images/templates/wagtailimages/images/results_image.html b/wagtail/images/templates/wagtailimages/images/results_image.html index 238109510..ff9143f46 100644 --- a/wagtail/images/templates/wagtailimages/images/results_image.html +++ b/wagtail/images/templates/wagtailimages/images/results_image.html @@ -15,4 +15,4 @@ {% load wagtailimages_tags %} -
    {% image image max-165x165 class="show-transparency" %}
    +
    {% image image max-165x165 class="show-transparency" alt="" %}