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

Update sub-table link text in nunjucks macros #4309

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

owenatgov
Copy link
Contributor

What

Updates the link text for the generated links in our examples partial, where a nunjucks macro option has it's own params and the link jumps to that option's own option table.

Why

Part of #4267. This change will resolve 64 identified links that need clearer link text.

Notes

The first variation on line 120, which is used when a sub option is referencing a component that isn't the hint or label "components", doesn't have any instances across our library. This makes it hard to test. I was able to hard code it appearing by removing the label and hint condition. See the below screen shot of an example from the Text input options:

Screenshot of hint and label text input options with different link text

Copy link

netlify bot commented Nov 18, 2024

You can preview this change here:

Name Link
🔨 Latest commit b29aa47
🔍 Latest deploy log https://app.netlify.com/sites/govuk-design-system-preview/deploys/673b5907e404c90008d52388
😎 Deploy Preview https://deploy-preview-4309--govuk-design-system-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@calvin-lau-sig7 calvin-lau-sig7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Suggested the alternative concatenation format to make it read a bit better for some of the more long-winded option names.

Copy link
Contributor

@calvin-lau-sig7 calvin-lau-sig7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@owenatgov owenatgov merged commit 5d3c957 into main Nov 18, 2024
15 checks passed
@owenatgov owenatgov deleted the nunjucks-macro-link-text branch November 18, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants