gel-components-promos
A Promo component is used to advertise BBC content. It contains a headline link to the target content and optionally an image, media indication icon, description, or metadata strip.
This rule tests that when a promo is included in an HTML page it meets the requirements of the BBC GEL Promo component.
atomic
- BBC GEL Promos
- Required for conformance to BBC GEL
- Outcome mapping:
- Any failed outcomes: success criterion is not satisfied
- All passed outcomes: success criterion needs further testing
- An inapplicable outcome: success criterion needs further testing
- DOM Tree
This rule applies to any HTML page that includes a BBC GEL Promos component.
Each promo component contains a headline link; the headline link must contain text and the text should resemble that of the target page's <title> and <h1>.
Each promo component contains a headline link; the link must contain text and the text should resemble that of the target page's <title> and <h1>.
If the promo contains an <img> element it must either:
- have an
altattribute with a null value (alt="") if the image is decorative and provides no additional content - have an
altattribute with a value that describes the image's purpose
<img> elements used in the promo must not be contained within their own link.
No other content other than an optional <img> element may appear before the headline link in the source.
If a media indication icon is used (implemented with gel-promo__image and gel-promo__indicator classes), it may come before headline link in the source but must then:
- be hidden from assistive technologies using
aria-hidden="true" - have its content repeated as a readable text equivalent in the headline link
If a description is used it must appear after the headline link and before the metadata strip in the source.
Last modified: 2020-10-22