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

Only output space after breadcrumbs class if there's an additional class #2093

Merged

Conversation

frankieroberto
Copy link
Contributor

This change prevents the breadcrumb component from outputting a space after the html class if there are no custom classes to include. This has no impact on end users, but improves consistency with other components, and makes it easier to port the macros to other languages using the test fixtures.

Before

<div class="govuk-breadcrumbs ">

After

<div class="govuk-breadcrumbs">

Copy link
Contributor

@36degrees 36degrees left a comment

Choose a reason for hiding this comment

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

Makes sense to me – thanks @frankieroberto. Would you mind adding this fix to the changelog?

@frankieroberto
Copy link
Contributor Author

@36degrees done. Let me know if you need a rebase and force push, or if you’re happy to squash-merge.

@36degrees 36degrees changed the title Minor: only output space after breadcrumbs class if there's an additional class Only output space after breadcrumbs class if there's an additional class Jan 21, 2021
@36degrees 36degrees force-pushed the minor-fix-breadcrumbs-classes branch from efef01d to 4434857 Compare January 21, 2021 16:26
@36degrees 36degrees added this to the [NEXT] milestone Jan 21, 2021
@36degrees
Copy link
Contributor

Thanks @frankieroberto. This just needs a second review and then we can get this merged for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants