Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UX] Layouts: Use icons within drop buttons on small/mobile screens #1974

Open
klonos opened this issue Jun 14, 2016 · 9 comments
Open

[UX] Layouts: Use icons within drop buttons on small/mobile screens #1974

klonos opened this issue Jun 14, 2016 · 9 comments

Comments

@klonos
Copy link
Member

klonos commented Jun 14, 2016

This came up in #1935 (comment)

@olafgrabienski

... The motivation of my suggestion was the not so nice look of the User Login block title and it's Configure link in two rows, but I ain't got no better idea yet ...

@jenlampton

Yeah, I've scowled at that block several times too. We could certainly override the sidebar width for a few of these layouts to make the most-common ones look better, but it would be ideal to find a solution that works for all of them. Would you please open a new issue about this problem so don't forget to come up with better ideas? :)

@olafgrabienski
Copy link

As the original discussion is spread across the mentioned thread, here a short summary:

  • Regarding a layout with a Content and a Sidebar region with a 25/75% split on the front-end, I proposed to display the Sidebar a little wider on the the place-blocks page.
  • The motivation was the not so nice look of the User Login block title and it's Configure link in two rows.
  • @jenlampton wondered if my proposal would get confusing with more complicated layouts. And while we could override the sidebar width for most common layouts, a solution that works for all layouts would be better.
  • Under the tacit assumption regarding the more complicated layouts, my idea changed: In narrow contexts (viewport, narrow blocks), don't provide more space to some regions but save space. To get an idea how to do that, I made some suggestions like changing floats and chopping text.
  • @klonos mentioned better ways to chop text and suggested to use icon-fonts.

@klonos
Copy link
Member Author

klonos commented Jun 14, 2016

Yeah, having width proportions that do not match the actual layout does not seem right to me. I believe that most users would want/expect a WYSIWYG approach - not a WYSIAWYG one.

So, I think that replacing text with icons is a more suitable solution. The same buttons would include icon+text in a region where there is enough horizontal space but only icons when there's not enough space. Here's how it could look for block/region dropbuttons:

backdrop-issue1974-region_and_block_dropbuttons_with_icons

@klonos
Copy link
Member Author

klonos commented Jun 14, 2016

...but it seems kinda silly to have icons in dropbuttons. We could instead make them split-buttons and spare the users the extra clicks. Like so:

backdrop-issue1974-region_and_block_split_buttons_with_icons

@olafgrabienski
Copy link

Wow, nice, especially the split-buttons!

The icons look very (too?) detailed, which font is it?

@klonos
Copy link
Member Author

klonos commented Jun 14, 2016

It's http://fontawesome.io/icons/ ...we already have a contrib module if you want to use it on any current project of yours: https://backdropcms.org/project/font_awesome ...and if you like Google fonts, there's also https://backdropcms.org/project/google_fonts (although it's font - not a font icons)

@quicksketch
Copy link
Member

This suggestion looks great! Those split buttons could get tricky though... we'd need some CSS wizardry or possibly a JS behavior to add/remove classes. And of course we still have some icon indecision (see #364). In concept I love it. Now we just have to figure out implementation. 😄

Let's add the design audience here and make this a feature request.

@quicksketch quicksketch changed the title Optimize the place-blocks page for small/mobile screens. Use icons within drop buttons on small/mobile screens Aug 16, 2016
@klonos
Copy link
Member Author

klonos commented Aug 16, 2016

...and make this a feature request.

😉

@klonos
Copy link
Member Author

klonos commented Feb 13, 2019

And of course we still have some icon indecision (see #364).

Seems that we don't have to wait for that, as we have been adding icons by converting font-awesome to .png (#1841). We can switch to font icons at a later point when #364 is implemented.

@klonos klonos changed the title Use icons within drop buttons on small/mobile screens [UX] Layouts: Use icons within drop buttons on small/mobile screens Feb 13, 2019
@klonos
Copy link
Member Author

klonos commented Apr 11, 2024

There's progress in #364, which might unblock this 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants