Skip to content

Align help icon for code quality MR widget

Scott Hampton requested to merge 283892-fix-mr-widget-help-icon into master

What does this MR do?

Related to #283892 (closed)

Fixes the alignment for the help icon in merge request report widgets.

Screenshots (strongly suggested)

The change is subtle, but notice in the before screenshot that the SVG had 1 extra pixel on top that was pushing it down. This is primarily due to how the help_popover.vue component is set up; it wraps the popover and the SVG in a span since there can only be one root component. This causes the popover to force a single pixel above the SVG, but can be fixed by making the component display: inline-flex.

Before After
Screen_Shot_2021-04-26_at_3.29.45_PM Screen_Shot_2021-04-26_at_3.28.45_PM

I also changed the text to be wrapped in a p tag so that it can be forced to the proper line height. Without this, the line height was 17px, but now it is forced to 16px. This forced me to add the the proper flex classes to the wrapper around the text and the popover button to make sure everything lined up properly.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Scott Hampton

Merge request reports