After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 760427 - Adwaita: Separators in popovers shouldn't always have margins
Adwaita: Separators in popovers shouldn't always have margins
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Themes
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-01-11 06:09 UTC by Hashem Nasarat
Modified: 2016-01-11 22:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Adwaita: fix separator margin in popovers (1.91 KB, patch)
2016-01-11 06:09 UTC, Hashem Nasarat
none Details | Review
Adwaita: fix separator margin in popovers (2.29 KB, patch)
2016-01-11 15:55 UTC, Hashem Nasarat
none Details | Review
Adwaita: fix separator margin in popovers (2.38 KB, patch)
2016-01-11 20:02 UTC, Hashem Nasarat
none Details | Review

Description Hashem Nasarat 2016-01-11 06:09:22 UTC
Commit 0b96b8a1 set margins via css, but accidentally changed the
semantics of margins for separators in popovers so that any separator
in a gtkpopover had a margin. This meant that the separators in
GtkListBoxes in popovers also had a margin around their separators, and
this is not what we want because it doesn't match separators in
listboxes not in popovers.
Comment 1 Hashem Nasarat 2016-01-11 06:09:27 UTC
Created attachment 318694 [details] [review]
Adwaita: fix separator margin in popovers
Comment 2 Hashem Nasarat 2016-01-11 06:11:32 UTC
before/broken: http://i.imgur.com/gjLlLDD.png
after/fixed: http://i.imgur.com/82jOeKZ.png
Comment 3 Lapo Calamandrei 2016-01-11 10:00:36 UTC
Review of attachment 318694 [details] [review]:

The CSS is generated by sass from the scss source files, so this needs to be done in _common.scss
Comment 4 Lapo Calamandrei 2016-01-11 10:01:31 UTC
Good catch, thanks for spotting.
Comment 5 Hashem Nasarat 2016-01-11 15:55:20 UTC
Created attachment 318758 [details] [review]
Adwaita: fix separator margin in popovers

Commit 0b96b8a1 set margins via css, but accidentally changed the
semantics of margins for separators in popovers so that any separator
in a gtkpopover had a margin. This meant that the separators in
GtkListBoxes in popovers also had a margin around their separators, and
this is not what we want because it doesn't match separators in
listboxes not in popovers.
Comment 6 Lapo Calamandrei 2016-01-11 16:54:42 UTC
On a second look this won't work, the popover > separator selector selects nothing most of the time (since separators are rarelly a direct child of the separator), so the patch fixes the specific issue by removing separator margins generally even when needed. Probably the correct solution here is to special case separators in lists in popovers, with something like:

popover list separator { margin: 0; }
Comment 7 Hashem Nasarat 2016-01-11 20:02:55 UTC
Created attachment 318821 [details] [review]
Adwaita: fix separator margin in popovers

Commit 0b96b8a1 set margins via css, but accidentally changed the
semantics of margins for separators in popovers so that any separator
in a gtkpopover had a margin. This meant that the separators in
GtkListBoxes in popovers also had a margin around their separators, and
this is not what we want because it doesn't match separators in
listboxes not in popovers.
Comment 8 Lapo Calamandrei 2016-01-11 20:05:06 UTC
Review of attachment 318821 [details] [review]:

Looks good