-
Notifications
You must be signed in to change notification settings - Fork 115
Sidebar: Improvements #528
Comments
I wonder if we should add the little arrows as a block style |
I think that would be great. |
I'm gonna work on this |
I've been thinking about this and checking the behaviour of our spacing presets in this particular instance and I'm inclined to agree that we need static values in this particular case (though I would change the units to rem instead of pixels). The reason for this is that the sidebar is already narrow on desktop, and the spacing between elements should stay the same throughout any viewport sizing. Using the preset 40 makes sense in desktop because it translates to 64px, but on mobile it goes to almost half that, when the font sizes are not really changing that much, and the width of the area is still the same, so it looks really cramped like Bea shows in her video. |
This looks like a case for container queries, but of course it shouldn't be something the theme needs to handle itself, since that can't translate to theme swaping |
I talked to Rich about this and we came to an agreement that this particular case it's ok to have fixed values instead of presets because of the reasons outlined above. There's no way to make this look good on mobile with our flexible presets and we don't want to make them static for the rest of the instances where they are used. |
The sidebar appearance isn't currently looking as refined as it should, both on desktop as on mobile. From my testing, this seems to be related with the use of the font size and spacing presets. On desktop, they look too big/spaced out. On mobile too small/tight. Here's how it is looking:
sidebar.mp4
Because of this, I rethought this section, included different blocks, perhaps even more relevant than a repeated query loop, since we'll have posts on the left. I set the headings to
1,6rem
and the outer group block spacing to36px
. In the stacks, I used16px
between the heading and content. The result is instantly more harmonious:I was also going to ask if we can remove the dots in the categories as they add extra visual noise. Ideally the sidebar would look like the following screenshots:
Here's the markup which in this case is very relevant to look at:
The text was updated successfully, but these errors were encountered: