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

Buttons in controls bar should be 44px squares #7481

Closed
pixelipo opened this issue Dec 13, 2017 · 14 comments
Closed

Buttons in controls bar should be 44px squares #7481

pixelipo opened this issue Dec 13, 2017 · 14 comments
Labels
4. to release Ready to be released and/or waiting for tests to finish accessibility design Design, UI, UX, etc. feature: accessibility feature: files

Comments

@pixelipo
Copy link
Contributor

Currently, there is a lot of inconsistency in the buttons places on the #controls bar - most of them are 40px wide and 36px, but some apps (e.g. Deck uses 38x36px).

Design guidelines require a minimum (and optimal?) size for anything clickable to be 44px both width and height, so we should update these buttons.

It will also require the entire bar to become larger - currently it's 44px hight, but buttons need some margin so it should become 50px high.

@pixelipo pixelipo added the 1. to develop Accepted and waiting to be taken care of label Dec 13, 2017
@pixelipo pixelipo added this to the Nextcloud 14 milestone Dec 13, 2017
@pixelipo pixelipo added design Design, UI, UX, etc. good first issue Small tasks with clear documentation about how and in which place you need to fix things in. labels Dec 13, 2017
@jancborchardt jancborchardt removed good first issue good first issue Small tasks with clear documentation about how and in which place you need to fix things in. labels Jan 9, 2018
@jancborchardt
Copy link
Member

(Untagging it from good first / starter issue though cause changing the height of the controls bar etc has wider-reaching implications and needs to be well-tested.)

@skjnldsv
Copy link
Member

skjnldsv commented Mar 7, 2018

@danxuliu did you fixed it in the latest gallery?

@danxuliu
Copy link
Member

danxuliu commented Mar 7, 2018

@skjnldsv

did you fixed it in the latest gallery?

Not yet, but I intended to fix some issues with the buttons in the controls bar of the gallery and this was one of them ;-)

However, based on my initial tests, in my opinion making those buttons 44x44px is visually too much. An alternative would be to keep them at 36x36px, but provide an invisible clickable area around them of 44x44px. But the problem with that approach is that, although in a touchable interface it would work nicely, when using the mouse it would be surprising to click outside the visual borders of the button and still trigger a click on the button.

So... any idea to have nicely sized buttons that work fine with both a touchable screen and a mouse? :-) This should be taken into account too in other areas, for example in the details view of the Files app, which currently does not seem to be very touch friendly.

@skjnldsv
Copy link
Member

skjnldsv commented Mar 7, 2018

@danxuliu I'm fine with 44px imho. Especially sine screens tend to be bigger and bigger, the pixel size keeps getting smaller with the density increase. I'm not sure 44px is still considered as "big" nowadays :)

@danxuliu
Copy link
Member

danxuliu commented Mar 7, 2018

@skjnldsv I do not know what is considered "big" nowadays; what I know is that in a 1920x1200 24" screen they look too bulky for my taste ;-) (although it may be just due to being used to the previous size)

gallery-controls-buttons-44px

In any case it is just a matter of personal preference, so given that it improves the accessibility and it does not cause any surprising behaviour depending on the pointing device I am fine with changing them to 44px.

@skjnldsv
Copy link
Member

skjnldsv commented Mar 7, 2018

I need to see before having an opinion. Blank statement won't really help us I think here :)
Maybe you're right and we should reduce it a bit :)

@nextcloud-bot nextcloud-bot added the stale Ticket or PR with no recent activity label Jun 20, 2018
@nextcloud-bot nextcloud-bot removed the stale Ticket or PR with no recent activity label Jun 21, 2018
@MorrisJobke
Copy link
Member

Most likely nothing for 14 -> moving to 15.

@MorrisJobke
Copy link
Member

Ref #10617

@MorrisJobke
Copy link
Member

MorrisJobke commented Nov 15, 2018

Moving to 16

@MorrisJobke MorrisJobke removed this from the Nextcloud 16 milestone Feb 25, 2019
@jancborchardt jancborchardt added this to the Nextcloud 21 milestone Aug 23, 2020
@jancborchardt jancborchardt self-assigned this Aug 23, 2020
@skjnldsv skjnldsv modified the milestones: Nextcloud 22, Nextcloud 23 Jul 5, 2021
@blizzz blizzz modified the milestones: Nextcloud 23, Nextcloud 24 Nov 30, 2021
@blizzz
Copy link
Member

blizzz commented Nov 30, 2021

what's the state here?

@jancborchardt
Copy link
Member

For Files at least, the only 2 buttons left not having at least 44*44px are:

  • the "+" new button, at 36*36px. Just making the button larger would look a bit strange, without margin to the top bar then. Possibilities:
    • Move the button to the top of the left navigation
    • Make it icon-only (would the become a bit invisible though)
    • Somehow display it at 3636px so it looks like a smaller button, but add padding to the clickable element so it’s 4444px – is that possible with the component?
  • the share button at 16*44px too little width. Can be solved by adding extra padding to the sides and negative margin, to keep the visuals the same.

@marcoambrosini @nimishavijay what do you think?

@marcoambrosini
Copy link
Member

marcoambrosini commented Dec 2, 2021

For the 1st option, I'd go with either tertiary or secondary buttons:

Screenshot 2021-12-02 at 14 31 08

About the size concerns, the whole files top-bar can grow to 60px, so that there are adequate margins around the elements. By making the topbar 16px taller, even if the buttons increase in size it wouldn't feel so forced.

Screenshot 2021-12-02 at 14 35 51

If we make it icon only (tertiary), we can keep the height of the topbar at 44px, it'll be less visible but the svg could increase in size (from 16px to 20px) and that would compensate a bit.

For the share I'd keep the tertiary. Here too the icon should be 20px, not 16px

@jancborchardt
Copy link
Member

Sounds good @marcoambrosini – cc @skjnldsv probably also something for the Vue rewrite?

@jancborchardt jancborchardt removed their assignment Dec 7, 2021
@blizzz blizzz modified the milestones: Nextcloud 24, Nextcloud 25 Apr 21, 2022
@blizzz blizzz modified the milestones: Nextcloud 25, Nextcloud 26 Oct 19, 2022
@blizzz blizzz modified the milestones: Nextcloud 26, Nextcloud 27 Mar 9, 2023
@szaimen szaimen removed the bug label Jun 20, 2023
@skjnldsv skjnldsv removed this from the Nextcloud 27.0.2 milestone Aug 8, 2023
@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 1. to develop Accepted and waiting to be taken care of labels Aug 16, 2023
@skjnldsv
Copy link
Member

Done with 28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish accessibility design Design, UI, UX, etc. feature: accessibility feature: files
Projects
Status: Done
Development

No branches or pull requests

10 participants