summaryrefslogtreecommitdiff
path: root/addons/website/data/website_data.xml
diff options
context:
space:
mode:
authorSamuel Degueldre <sad@odoo.com>2020-02-26 11:58:27 +0000
committerSamuel Degueldre <sad@odoo.com>2020-03-30 11:07:10 +0000
commit807ac811446836925092b7214fec004ef4ef4ca8 (patch)
treef259401bc6ce867555dc63643df8eb7f283068b6 /addons/website/data/website_data.xml
parent02e71a1a3c2ec1446210cddfa0e08840bea7fde6 (diff)
[IMP] web_editor, *: set image alt automatically, remove useless alts
*: website, web_unplash The html alt attribute is supposed to contain a description of an image's content (an alternative to the visual representation), a lot of snippets contained alt attributes that were not descriptive of their content, and would as such be counter-productive in terms of accessibility. This commit removes those. Previously, the alt attribute on img tags had to be set manually by the user through the editor. This commit makes use of the description field on ir.attachment to store image description, and sets the alt attribute on images to that description when choosing an image from the media dialog. task-2091417 closes odoo/odoo#45174 Related: odoo/enterprise#9520 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/website/data/website_data.xml')
-rw-r--r--addons/website/data/website_data.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website/data/website_data.xml b/addons/website/data/website_data.xml
index 9daa9716d0a..1cf2b4faec9 100644
--- a/addons/website/data/website_data.xml
+++ b/addons/website/data/website_data.xml
@@ -94,7 +94,7 @@
</p>
</div>
<div class="col-lg-6 pt16 pb16">
- <img src="/website/static/src/img/library/business_conference.jpg" class="img img-fluid shadow" alt="Our Team"/>
+ <img src="/website/static/src/img/library/business_conference.jpg" class="img img-fluid shadow" alt=""/>
</div>
</div>
</div>