the webeditor uloads an image and fills in the alt-text and places the image in the content (or refers to it).
According to the wcag guidelines decorative images should not have an alt-text but this can not be undone since there is no way to alter the given alt-text.
The only option is to upload the image again, this time without alt.
This way we create a lot of duplicates in the media and create a not maintainable bulk of media.

CommentFileSizeAuthor
#3 2.png19.79 KBnikkitam
#3 1.png21.85 KBnikkitam

Comments

nikkitam’s picture

Hi Team,

I am using the media image fields for the Taxonomy. Once the image is updated there is no options to change the image Alt text, how can i change the image alt for a specific image, after the image is updated.

Thanks

joseph.olstad’s picture

Project: D7 Media » Drupal core
Version: 8.x-1.x-dev » 8.7.x-dev
Component: Media Field » media system
Priority: Critical » Normal

This support request belongs in the core issue queue, this question may have been previously answered, suggest to search the core issue queue for related support request solutions.

For others to assist, Please provide your field configuration options related to alt/title. Drupal core version.

please note: Drupal core 8.8.x adds new media functionality, you may want to try it now. The 8.8.0 release is scheduled for release in december

nikkitam’s picture

StatusFileSize
new21.85 KB
new19.79 KB

Hi Team

We will get the alt text field while uploading the new image. Please refer attached image(1.png).
Once the image is updated there is no options to change the image Alt text. Please refer attached image(2.png).

Please let us know the steps to add the alt for a specific image, after the image is updated.

Thanks

joseph.olstad’s picture

Add a new image, alt field is there
Alt when adding new image

And some are expecting alt edit when inserting like this:
Alt some expect edit alt option when doing insert image

Here is what to expect in Drupal core version 8.8.0 which will be released in december 2019:
https://wimleers.com/blog/media-embedding-drupal-8.8

joseph.olstad’s picture

@nikkitam
What modules related to media have you installed? Example:
Media library?
?also
What version on drupal core are you using?

nikkitam’s picture

Hi Joseph,

I have installed "Media", "Media Library" Module and using 8.7.7 drupal version.

Thanks

joseph.olstad’s picture

Try Drupal core 8.8.x dev

OR if you do not want to use 8.8.x dev,
Try this module:
https://www.drupal.org/project/file_management

seems like it does what you want.

ghost of drupal past’s picture

imclean’s picture

You can edit the alt text directly on the media entity, but currently editing the alt text changes it for all uses of that media entity. To view all media, go to /admin/content/media. Click the media name to edit it.

To edit the a specific media, use the form /media/2/edit where 2 is the media ID.

See also: #2985168: [PP-1] Allow media items to be edited in a modal when using the field widget

andrewmacpherson’s picture

Issue tags: +Accessibility

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.9 was released on November 6 and is the final full bugfix release for the Drupal 8.7.x series. Drupal 8.7.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.8.0 on December 4, 2019. (Drupal 8.8.0-beta1 is available for testing.)

Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

inst’s picture

Hi,
is it possible that I can create my own at-text and titel field and not using the on that media type image brings with?

thanks!

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

phenaproxima’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: +Needs issue summary update

I'm not clear on what the issue is here; can we get some details in the issue summary?

phenaproxima’s picture

bond708’s picture

I will try to make a summary of the problem :

the webeditor uloads an image and fills in the alt-text and places the image in the content (or refers to it).
According to the wcag guidelines decorative images should not have an alt-text but this can not be undone since there is no way to alter the given alt-text.
The only option is to upload the image again, this time without alt.
This way we create a lot of duplicates in the media and create a not maintainable bulk of media.

Drupal 8.9.6

bond708’s picture

Issue summary: View changes
kari.kaariainen’s picture

This is not correct: "there is no way to alter the given alt-text". Like #9 explained, you can edit the alt text, but it is common for all instances where the media is used.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev
cilefen’s picture

Title: Alt Text for Media Field » According to the WCAG guidelines decorative images should not have an alt-text but this is not possible
Category: Support request » Bug report
Status: Postponed (maintainer needs more info) » Active

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.9 was released on December 7, 2022 and is the final full bugfix release for the Drupal 9.4.x series. Drupal 9.4.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.5.x-dev branch from now on, and new development or disruptive changes should be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

mortona2k’s picture

cilefen’s picture

I think this issue duplicates the issue you referenced.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.