Closed lambry closed 2 years ago
Allow alt text to be displayed for hero banner logos (primarily for screen readers).
JIRA issue: https://digital-vic.atlassian.net/browse/SDPAP-6333
This update displays the logo's alt title in the hero component, this means the logo being passed to HeroBanner.vue is now an object instead of a string.
HeroBanner.vue
The storybook story has been updated so the logo prop is now an object. https://storybook.pr-1228.ripple.sdp2.sdp.vic.gov.au/?path=/story/organisms-banners--hero-banner
The change can be previewed at the below URLS: Hero logo with alt text: https://app.pr-1228.ripple.sdp2.sdp.vic.gov.au/sdpta-all-components-landing-page-fixture Page with no hero logo: https://app.pr-1228.ripple.sdp2.sdp.vic.gov.au/embedded-video-test
Motivation and Context
Allow alt text to be displayed for hero banner logos (primarily for screen readers).
JIRA issue: https://digital-vic.atlassian.net/browse/SDPAP-6333
Changed
This update displays the logo's alt title in the hero component, this means the logo being passed to
HeroBanner.vue
is now an object instead of a string.Screenshots
How Has This Been Tested?
The storybook story has been updated so the logo prop is now an object. https://storybook.pr-1228.ripple.sdp2.sdp.vic.gov.au/?path=/story/organisms-banners--hero-banner
The change can be previewed at the below URLS: Hero logo with alt text: https://app.pr-1228.ripple.sdp2.sdp.vic.gov.au/sdpta-all-components-landing-page-fixture Page with no hero logo: https://app.pr-1228.ripple.sdp2.sdp.vic.gov.au/embedded-video-test
Types of changes
Note: someone more familiar with the project may be aware of any unforeseen issues around changing the prop type.
Checklist