Fix image filter tooltip
What does this MR do and why?
This fixes a bug where the image filter's tooltip isn't displaying. See this for why it's happening > #376341 (comment 1197650875)
There's a bug, the tooltip for each dropdown item in the image filter is not showing. This is because
<filter-item>
already setsv-gl-tooltip
, so thev-gl-tooltip.left.viewport="image"
inImageFilter
is not being used because theFilterItem
one is replacing it. We will either need to wrap it in a div.
Screenshots or screen recordings
How to set up and validate locally
- Enable the FF
echo "Feature.enable(:refactor_vulnerability_filters)" | rails c
- Security & Compliance > Vulnerability report > Operational vulnerabilities tab
- Hovering over an item in the image filter will display the tooltip
- Repeat the same steps with the FF off
echo "Feature.disable(:refactor_vulnerability_filters)" | rails c
Alternatively, you can mock the date like this:
- Select the image div like this so you have access to it:
- And paste this into the console to replace the images data:
$vm0.images = ['some long image name 1', 'some long image name 2', 'some long image name 3 sooooooo looooonnnnnng very loooooonnnng']
MR 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 MR.
Edited by Samantha Ming