Skip to content

WIP: Styling badges of all sorts

Dimitrie Hoekstra requested to merge styling-badges-of-all-sorts into master

What does this MR do?

It will change the styling of

  • count badges
  • permission badges
  • status badges (CI and open,closed etc)

for clickable badges it will try to put in the same hover, active and focus functionality as #25220 (moved)

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

Badges are not uniquely defined enough and should be represented with a unified look that identifies them in an aesthetically pleasing way. Also it tries to simplify the usage of status icons for ci and open closed etc, both for full fledged status badges (with text) as well as without text.

Screenshots (if relevant)

  • permission badges now feature a pill shape (similar to labels) image
  • count badges now feature an opacity based bg instead of a solid color.. this way they adjust automatically based on a darker or lighter background.. looks are the same as they were for top nav... but is very slightly visible for non top nav count badges. This improves contrast very lightly. image
  • ?

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #25564 (closed) #27896 (moved)

Merge request reports