Filter sidebar contents shift downwards when going between 1 and 0 selected filters #1396
Comments
Hi @sarayourfriend, I would like to help out with this issue : ) As I debugged a little I found that font sizes of |
@asprazz Please take it away! Your diagnosis sounds good to me. I've assigned the issue to you 🚀 Feel free to ping if you need any assistance 💃 |
Hi @sarayourfriend, as I have started to think about the solution, I have came up with two solutions. One is to increase the font-size of Second is to add margin (my-1) around parent of |
Those both sound like good approaches that could work, @asprazz. Another would be to absolutely position the 'clear' button to the top right (top 'end', in a right-to-left RTL context) corner of the sidebar, which would take it out of the document flow and make sure the page doesn't move when the clear button's visibility is toggled. |
All sound good to me. If you do Zack's suggestion just make sure to keep RTL layout in mind. You can test those by adding |
@asprazz, thank you for taking on this issue! It is important to keep the font sizes matching the design mockups: https://www.figma.com/file/w60dl1XPUvSaRncv1Utmnb/Audio-Release?node-id=133%3A15087 |
The absolute positioning may also be a problem for languages with longer words, actually, now that you mention it Olga. This issue is deceptively tough 🙂 Overall I think the margin option probably has the least pitfalls of the approaches listed. |
Hi All, I gave everything a new thought by going through all options we came up with.
but I chose to reduce padding of Please do correct me if my thoughts are diverging and PR is always reversible : ) |
Description
Filter sidebar contents shift downwards when going between 1 and 0 selected filters
Reproduction
Screenshots
openverse-filter-sidebar-shifting.mp4
Additional context
Probably a height issue with the "clear filters" button.
Resolution
The text was updated successfully, but these errors were encountered: