Fix spacing around secondary badge sets
What does this MR do and why?
There are two ways badges get added to page headers:
- Authors include them in markdown
- Badges get automatically added by frontend code, based on the URL path, for two special sections (Contribute and Solutions)
We do not currently have styling to cover the case where badges of both flavors are added, like we can see here: https://docs.gitlab.com/ee/solutions/cloud/aws/gitlab_instance_on_aws.html. The badges are unevenly spaced.
This MR adds styling for cases where a second badge set exists. Regardless of how a badge is added, or which combination of styles we're showing, all badges should be evenly spaced.
Closes #1730 (closed)
Screenshots, screen recordings, or links to review app
Before | After |
---|---|
No changes expected for these scenarios:
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
-
Configure a local GitLab Docs environment: https://gitlab.com/gitlab-org/gitlab-docs/-/blob/main/doc/setup.md. -
Verify the badges are evenly spaced here: http://localhost:3000/ee/solutions/cloud/aws/gitlab_single_box_on_aws.html
Merge request acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this merge request.
Edited by Sarah German