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 skip link support for custom HTML and classes #206

Merged
merged 1 commit into from
Jul 8, 2021

Conversation

peteryates
Copy link
Member

@peteryates peteryates commented Jul 6, 2021

Add the skip link improvement suggestions made in #202

subject { govuk_skip_link { tag.span(custom_text, class: custom_class) } }

it "inserts the custom HTML into the anchor element" do
expect(subject).to have_tag('a', with: { href: default_href }) do
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does is_expected.to style work with blocks?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry missed this question - I don't believe it's possible.

@peteryates peteryates merged commit c245955 into version-2.0.0 Jul 8, 2021
@peteryates peteryates deleted the version-2.0.0-pp-skip-link branch July 8, 2021 08:11
@peteryates peteryates added this to the Version 2.0.0 milestone Jul 25, 2021
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.

None yet

2 participants