-
Notifications
You must be signed in to change notification settings - Fork 561
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
Support link underline preference #3720
Conversation
🦋 Changeset detectedLatest commit: 90d5f19 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Uh oh! @mperrotti, the image you shared is missing helpful alt text. Check your pull request body. Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image. Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs. |
Uh oh! @mperrotti, the image you shared is missing helpful alt text. Check #3720 (comment). Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image. Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs. |
Just ignore this PR until I mark it as "Ready for review". We have more changes to make after talking with @ericwbailey about the feature-flagged user preferences for link underlines. |
Uh oh! @mperrotti, the image you shared is missing helpful alt text. Check your pull request body. Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image. Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs. |
Uh oh! @mperrotti, the image you shared is missing helpful alt text. Check your pull request body. Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image. Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs. |
src/drafts/Prose/Prose.tsx
Outdated
@@ -0,0 +1,159 @@ | |||
import React from 'react' |
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.
I'm questioning whether PRC even needs this component. It's very rare that we need to render a large block of prose in the apps that use Primer.
Reviewers - do you think we should add a Prose component?
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.
@mperrotti I'd be down to ship with the underline changes that you have with the custom property stuff and then see if we still need something like this in the future 👀 Like you said, it seems like underline behavior is more of a one-off thing.
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.
Thanks @joshblack - I totally missed your comment last week. I'll take out the Prose stuff.
This reverts commit 521b02f.
* adds Prose component and stories * adds tests and makes some minor changes * Create happy-rivers-attend.md * handle link underline preferences * adds visual regression testing * fixes storybook ID in Prose docs data * updates changeset with changed components data * rm Prose component * test(vrt): update snapshots * test(e2e): separate storybook global args by semicolon instead of ampersand * test(vrt): update snapshots * update snapshots --------- Co-authored-by: joshblack <joshblack@users.noreply.github.com>
This was initiated by our need for underlined links in blocks of text, and supports dotcom's new user setting to render links with underlines. The link underline setting is currently being tested on dotcom behind a feature flag.
A new setting has been added to the Storybook toolbar that allows us to preview what a component would look like when the user has specified that they prefer link underlines.
Closes https://github.com/github/primer/issues/2536
Screenshots
User who turned link underlines on in their GitHub settings
Additional context about link underline settings
Issue: https://github.com/github/releases/issues/3340
Dotcom PR: https://github.com/github/github/pull/278701
Merge checklist
Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.