We've recently been made aware of an issue with the aria-label in the footer feedback link being malformed if the feedback_title arg isn't passed through to the design system. If no feedback_title is passed in then the aria label is set to (opens in new tab).
In the footer html file there's an or statement that falls back to the default feedback title if the title is missing. But this behaviour isn't extended to/replicated in the aria-label in the ruby file, it just uses title, so it will be nil if the title hasn't been passed in.
Steps to replicate
Render the footer component without the feedback_title argument e.g.
The aria-label falls back to use the same feedback text as the title; if feedback_title is nil
Actual behavior
The aria-label is set to (opens in a new tab) if feedback_title isn't passed through
Context
url
We've updated public-website to pass the feedback_title everywhere that we use the Footer component so there's no url that I know of where this bug is now present
screenshot
The feedback link component when rendered:
This is a screenshot of the aria-label before the update to public-website:
Summary of problem
We've recently been made aware of an issue with the aria-label in the footer feedback link being malformed if the feedback_title arg isn't passed through to the design system. If no feedback_title is passed in then the aria label is set to
(opens in new tab)
.In the footer html file there's an
or
statement that falls back to the default feedback title if the title is missing. But this behaviour isn't extended to/replicated in the aria-label in the ruby file, it just usestitle
, so it will be nil if the title hasn't been passed in.Steps to replicate
Render the footer component without the feedback_title argument e.g.
= render FooterComponent.new(current_path: request.path, feedback_survey_id: "/some-feedback-url/", columns: advisernet_footer_nav_links)
Expected behaviour
The aria-label falls back to use the same feedback text as the title; if feedback_title is nil
Actual behavior
The aria-label is set to
(opens in a new tab)
if feedback_title isn't passed throughContext
url We've updated public-website to pass the feedback_title everywhere that we use the Footer component so there's no url that I know of where this bug is now present
screenshot The feedback link component when rendered:
This is a screenshot of the aria-label before the update to public-website: