Fix preset input in filter tooltip
Categories
(DevTools :: Inspector, defect, P2)
Tracking
(firefox-esr68 wontfix, firefox74 wontfix, firefox75 wontfix, firefox76 wontfix, firefox77 fixed)
People
(Reporter: miker, Assigned: jansone-dace, Mentored)
Details
(Keywords: regression)
Attachments
(2 files)
Watch the Video as it shows how to reproduce this bug (video and audio).
STR
- Open the rule view.
- Add a filter to an element e.g.
filter: blur(5px)
. - Click the filter icon.
- Look towards the bottom right of the filter tooltip.
- Click inside the area where there is a small blemish.
- Type some text.
The text appears and pushes the whole tooltip to the left... closing and re-opening the tooltip doesn't fix it.
Reporter | ||
Updated•6 years ago
|
Comment 1•6 years ago
|
||
:miker, if you think that's a regression, then could you try to find a regression range in using for example mozregression?
Assignee | ||
Comment 2•5 years ago
|
||
Hello!
I would like to work on this bug. Can I do that?
Comment 3•5 years ago
|
||
(In reply to Dace Jansone from comment #2)
Hello!
I would like to work on this bug. Can I do that?
Hi!
You're welcome to work on this. The relevant files are likely:
- devtools/client/shared/widgets/tooltip/SwatchFilterTooltip.js
- devtools/client/shared/widgets/FilterWidget.js
If you haven't done so already, learn how to get the code and your development environment set up by starting here: https://docs.firefox-dev.tools/
Comment 4•5 years ago
|
||
Bugbug thinks this bug is a regression, but please revert this change in case of error.
Assignee | ||
Comment 5•5 years ago
|
||
Fixed the problem that part of preset input field in filter widget was vissible
when it shouldn't be.
Assignee | ||
Comment 6•5 years ago
|
||
I have reproduced the problem in this jsfiddle: https://jsfiddle.net/7yqdn5ta/ (added red border to show where filter widget ends).
The CSS code hiding the preset list is as follows:
#filter-container:not(.show-presets) .presets-list{
width: 0;
border-left: none;
padding-left: 0;
}
But setting width to 0 only hides the element itself and doesn't hide it's children. I assume that is why the tooltip input element is visible.
To fix this I can either add overflow: hidden;
rule to the style (as per this SO answer: https://stackoverflow.com/a/47986458/5913386) or I can just hide everything by replacing the rules with display: none;
.
Which do you think would be a better solution?
Comment 7•5 years ago
|
||
Thanks for taking the time to look into the issue!
The overflow: hidden
on #filter-container .presets-list
seems like the most sensible approach.
Comment 9•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Description
•