Skip to content
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

Merged
merged 18 commits into from
May 6, 2024

Conversation

jivey
Copy link
Member

@jivey jivey commented Apr 11, 2024

@TomWoodward TomWoodward temporarily deployed to rex-web-attribution-lin-lthc14 April 11, 2024 21:43 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-attribution-lin-j9rxfn April 15, 2024 13:57 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-attribution-lin-n5ynle April 15, 2024 14:17 Inactive
@jivey jivey temporarily deployed to rex-web-attribution-lin-n5ynle April 15, 2024 14:47 Inactive
@jivey jivey temporarily deployed to rex-web-attribution-lin-n5ynle April 15, 2024 15:02 Inactive
@jivey jivey marked this pull request as ready for review April 15, 2024 19:35
@jivey jivey requested a review from a team as a code owner April 15, 2024 19:35
@jivey jivey requested a review from RoyEJohnson April 15, 2024 19:35
@TomWoodward TomWoodward temporarily deployed to rex-web-attribution-lin-n5ynle April 19, 2024 17:29 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-attribution-lin-n5ynle April 22, 2024 16:22 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-attribution-lin-n5ynle April 23, 2024 14:51 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-attribution-lin-n5ynle April 23, 2024 16:40 Inactive
@Malar-Natarajan Malar-Natarajan temporarily deployed to rex-web-attribution-lin-0ikhmv April 30, 2024 19:16 Inactive
@jivey jivey requested a review from RoyEJohnson May 1, 2024 16:37
@jivey jivey temporarily deployed to rex-web-attribution-lin-0ikhmv May 1, 2024 16:37 Inactive
@jivey
Copy link
Member Author

jivey commented May 1, 2024

@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>
Copy link
Contributor

@RoyEJohnson RoyEJohnson May 1, 2024

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}`}

Copy link
Member Author

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

@TomWoodward TomWoodward temporarily deployed to rex-web-attribution-lin-0ikhmv May 1, 2024 19:01 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-attribution-lin-0ikhmv May 2, 2024 19:35 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-attribution-lin-0ikhmv May 2, 2024 20:51 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-attribution-lin-0ikhmv May 2, 2024 21:31 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-attribution-lin-0ikhmv May 3, 2024 14:32 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-attribution-lin-0ikhmv May 3, 2024 14:33 Inactive
@jivey jivey temporarily deployed to rex-web-attribution-lin-0ikhmv May 3, 2024 21:20 Inactive
@jivey jivey temporarily deployed to rex-web-attribution-lin-0ikhmv May 3, 2024 21:25 Inactive
@Malar-Natarajan Malar-Natarajan merged commit 96e1784 into main May 6, 2024
8 of 9 checks passed
@Malar-Natarajan Malar-Natarajan deleted the attribution-link-aria-labels branch May 6, 2024 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants