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 alt text tags #471

Closed
6 of 13 tasks
ShanaLMoore opened this issue Jul 18, 2023 · 9 comments
Closed
6 of 13 tasks

🐛 Fix alt text tags #471

ShanaLMoore opened this issue Jul 18, 2023 · 9 comments

Comments

@ShanaLMoore
Copy link
Contributor

ShanaLMoore commented Jul 18, 2023

related to:

Summary

Per the accessibility audit, alt text needs to be appropriately used and applied. We discovered a few issues after using a screen reading tool (mac VoiceOver. Extension):

  • Logo Image: Update to use an alt attribute.

Image

  • Banner Image:
    • N/A. Screen readers typically do not read the alt text of background images because they are considered decorative and not essential for conveying information. The alt attribute is specifically intended for images inserted within the HTML content. It may be misleading to allow users to set it in the dashboard/appearance section. It currently sets the title attribute.
  • Directory Image: TBD
    • Not sure where or if it's being used
    • This feature hasn't been contributed back to hyku yet. I will make an issue against hyku. It's being used in Pals

Image

  • Default Work Image:
    a. Thumbnail: Missing alt text

Image

b. Default Image: Not displaying after being set

Image

  • Default Collection Image:
    a. Thumbnail: alt tag should be dynamic

Image

b. Default Image: alt tag is empty and should be dynamic

Image

Note: Default Images are used when the user creates a work without a fileset, or a collection without an image.

Acceptance Criteria

  • If an alt text is set, it should be used. Inspect elements to confirm the alt tag is present and set to the appropriate values.

Screenshots or Video

Testing Instructions

It may be best to consult Diem who originally performed the accessibility audit and took note of failures. Retest this using the rubric she had.

ref: Report.for.https___test.hykucommons.org_.pdf

Otherwise...

Set all of the options in the appearance setting.
Confirm the alt tags are in the inspect elements in all of the places. Reference the bullet points in the summary section for guidance.

Notes

Issue filed against hyku for missing directory image partial: samvera/hyku#1967

TODO:

  • AllinsonFlex needs an alt tag added to https://github.com/samvera-labs/allinson_flex/blob/main/app/views/hyrax/my/works/_list_works.html.erb#L12C10-L12C10 .
    • Compare it to hyrax that included the alt tag, however it needs to be dynamic to pull in the alt text that we set it to in hyku. default_work_image_text
  • IIIFPrint needs an update to representative_media. It currently references a default image when it should pull in the image we set it to in hyku. Default_work_image.
    • The alt text should be updated to be dynamic. pull in what is set in hyku.
  • Hyku needs a partial override/copy of point number 2 to override hyrax proper which just uses the default image.
    • this will get updated when hyku updates iiif_print
  • UTK media_display alt tag needs to dynamically pull in the settings from hyky. default_collection_image_text
@ShanaLMoore ShanaLMoore added this to the Milestone 2 milestone Jul 18, 2023
@kirkkwang kirkkwang changed the title 🐛 Fix alt tex tags 🐛 Fix alt text tags Jul 18, 2023
kirkkwang added a commit that referenced this issue Jul 18, 2023
This commit will update both AllinsonFlex and IIIF Print to bring in the
partials that affect certain thumbnail images.  They should now have
their alt text respect the alt text that has been set in the Appearance
tab.

Ref:
  - samvera-labs/allinson_flex#118
  - scientist-softserv/iiif_print#267
  - #471
kirkkwang added a commit that referenced this issue Jul 19, 2023
This commit will update both AllinsonFlex and IIIF Print to bring in the
partials that affect certain thumbnail images.  They should now have
their alt text respect the alt text that has been set in the Appearance
tab.

Ref:
  - samvera-labs/allinson_flex#118
  - scientist-softserv/iiif_print#267
  - #471
kirkkwang added a commit that referenced this issue Jul 19, 2023
This commit will update both AllinsonFlex and IIIF Print to bring in the
partials that affect certain thumbnail images.  They should now have
their alt text respect the alt text that has been set in the Appearance
tab.

Ref:
  - samvera-labs/allinson_flex#118
  - scientist-softserv/iiif_print#267
  - #471
@DiemBTran
Copy link
Contributor

Needs further review:

tested on:

testing instructions:

  • logo alt text is correct
    • from the home page, this is correct
    • from the dashboard, this is incorrect. should be alt attribute, not alt_text attribute
  • banner alt text is correct
  • directory alt text is correct
    • cannot be tested. N/A to UTK bc they don't have a directory splash page
  • default collection image alt text is correct
    • alt text doesn't save properly
  • default work image alt text is correct
    • alt text doesn't save properly
click to expand

Hyku 2023-07-26 at 9 27 57 AM
Show Appearance Hyku 2023-07-26 at 9 24 56 AM
Hyku 2023-07-26 at 9 28 46 AM
Show Appearance Hyku 2023-07-26 at 9 29 42 AM
Collections 2023-07-26 at 9 31 41 AM
Works 2023-07-26 at 9 30 42 AM

@ShanaLMoore
Copy link
Contributor Author

ShanaLMoore commented Jul 26, 2023

  • logo alt text is correct
    • from the home page, this is correct
    • from the dashboard, this is incorrect. should be alt attribute, not alt_text attribute
image
  • banner alt text is correct

  • collection thumbnail has the incorrect alt value

  • directory alt text is correct

    • cannot be tested. N/A to UTK bc they don't have a directory splash page (that is correct ✅ )

For the following two comments, if you only edit input field for alt text and click save, the form doesn't actually save. You. must re upload an image as well.

  • default collection thumbnail image alt text is correct
    • alt text doesn't save properly
  • default work thumbnail image alt text is correct
    • alt text doesn't save properly

@ShanaLMoore
Copy link
Contributor Author

cc @kirkkwang fyi rework branch started: i43-alt-text-tag-followup

TODO:

track down and fix collection/work thumbnail alt texts per Diem's feedback ^^

kirkkwang added a commit that referenced this issue Jul 27, 2023
This commit will fix the alt text for the collection thumbnail on the
dashboard and the Allinson Flex update will fix the thumbnail for the
work on the dashboard.

Ref:
  - samvera-labs/allinson_flex#121
  - #471
@jillpe
Copy link

jillpe commented Aug 1, 2023

  • logo alt text is correct
Screenshots Screen Shot 2023-08-01 at 2 39 16 PM

Image

  • banner alt text is correct
  • Screenshots

    Image

    Directory alt text is N/A for UTK because they do not use this feature.

    • default collection image alt text is correct
    Screenshots See Shana's comment below for more details

    Image

    • default work image alt text is correct
    Screenshots

    Image

    @ShanaLMoore
    Copy link
    Contributor Author

    ShanaLMoore commented Aug 1, 2023

    QA Results: ❌

    After meeting with Jill's assessment, this ticket ...

    needs rework because when i set the alt text for the collection splash page banner image, it set the title element instead of an alt tag. Images should have an alt tag for accessibility reasons.

    image

    The user must set this by editing a collection from the admin dashboard's branding tab. They would upload an image and set the alt text there too. TODO: For rework, confirm that setting the logo also sets the alt element and not just the title of the image.

    image

    @kirkkwang
    Copy link
    Contributor

    @ShanaLMoore Since this a div tag i don't expect it to have an alt text. Perhaps the setting of it should reflect that it is setting the title?

    @ShanaLMoore
    Copy link
    Contributor Author

    ShanaLMoore commented Aug 1, 2023

    OHHH yea you're right! @kirkkwang 🙃

    But should it be a div tag? 🤔 I agree the setting label is misleading if it should be.

    What about the collection logo?

    If that's good too then this passes cc @jillpe

    @ShanaLMoore
    Copy link
    Contributor Author

    OHHH yea you're right! @kirkkwang 🙃

    But should it be a div tag? 🤔 I agree the setting label is misleading if it should be.

    What about the collection logo?

    If that's good too then this passes cc @jillpe

    We're good

    the logo has an alt tag and an img element

    image

    @jillpe jillpe added this to utk-hyku Aug 1, 2023
    @jillpe jillpe moved this to Client QA in utk-hyku Aug 1, 2023
    @markpbaggett
    Copy link
    Collaborator

    Looks good to me. Bumping.

    @markpbaggett markpbaggett moved this from Client QA to Deploy to Production in utk-hyku Aug 4, 2023
    @ShanaLMoore ShanaLMoore moved this from Deploy to Production to Client Verification in utk-hyku Aug 4, 2023
    @josh-morgan117 josh-morgan117 moved this from Client Verification to Done in utk-hyku Aug 30, 2023
    @jillpe jillpe closed this as completed Aug 31, 2023
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    Status: Done
    Development

    No branches or pull requests

    5 participants