-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add chapter name and book title to attribution link #2220
Conversation
@RoyEJohnson I missed a couple of other citation links that needed this aria label as well, if you don't mind taking another look |
@@ -28,7 +28,7 @@ export const defaultText = ` | |||
If you are redistributing all or part of this book in a digital format, | |||
then you must include on every digital page view the following attribution: | |||
<blockquote> | |||
Access for free at <a target="_blank" href="https://openstax.org{introPageUrl}">https://openstax.org{introPageUrl}</a> | |||
Access for free at <a target="_blank" href="https://openstax.org{introPageUrl}" aria-label="{introPageTitle}">https://openstax.org{introPageUrl}</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The quotes are superfluous, aren't they? Should just be aria-label={introPageTitle}
?
And the interpolation in the href? That works? I'd write
href={`https://openstax.org${introPageUrl}`}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This string gets formatted with the useIntl stuff, so it's like how we interpolate in the messages.json file
https://openstax.atlassian.net/browse/DISCO-84