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

blurry buttons #12294

Closed
schiessle opened this issue Nov 5, 2018 · 22 comments · Fixed by #12558
Closed

blurry buttons #12294

schiessle opened this issue Nov 5, 2018 · 22 comments · Fixed by #12558
Labels
bug design Design, UI, UX, etc. high papercut Annoying recurring issue with possibly simple fix.
Milestone

Comments

@schiessle
Copy link
Member

schiessle commented Nov 5, 2018

Don't know it is just me, but the buttons look really blurry on my system (both on the internal monitor of the laptop and on the external), some examples:

  • Password enforce dialog on public links:
    image

  • Admin security setting "enforce two factor"
    image

Basically all rounded blue buttons are quite blurry on the edges, the gray buttons look good:

image

@schiessle schiessle added the design Design, UI, UX, etc. label Nov 5, 2018
@schiessle schiessle added this to the Nextcloud 15 milestone Nov 5, 2018
@schiessle
Copy link
Member Author

cc @nextcloud/designers

@nextcloud-bot nextcloud-bot added the papercut Annoying recurring issue with possibly simple fix. label Nov 5, 2018
@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #3752 (Backupcodes button sizes), #11824 ("Add Group" button has disappeared), #2104 (More contextually relevant button labels), #4352 (Password reset button broken), and #10346 (Logout button on shared email-links).

@skjnldsv
Copy link
Member

skjnldsv commented Nov 6, 2018

You mean the antialiasing?

@MariusBluem
Copy link
Member

Yes.

@skjnldsv
Copy link
Member

skjnldsv commented Nov 6, 2018

Unfortunately we cannot really do much about this.
The only thing would be to make sure the background goes under the border with background-clip: border-box;

The difference is tiny but noticeable (same background, only change is the background-clip property.

Before After
dev skjnldsv com_settings_admin_security 1 dev skjnldsv com_settings_admin_security 2

@MariusBluem
Copy link
Member

@schiessle and me just tested this with Firefox and even IE11 in a Windows-VM. Same design issue/behaviour. Maybe we should go back to the old buttons - better stable, known and looking good than new, fancy and full of issues 🤔

@skjnldsv
Copy link
Member

skjnldsv commented Nov 6, 2018

Maybe we should go back to the old buttons - better stable, known and looking good than new, fancy and full of issues

No preferences here :)
@jancborchardt ?

@MorrisJobke
Copy link
Member

@schiessle and me just tested this with Firefox and even IE11 in a Windows-VM. Same design issue/behaviour. Maybe we should go back to the old buttons - better stable, known and looking good than new, fancy and full of issues 🤔

👍 I would say that this is a blocker for the beta 1 - we should not change this after beta 1.

@MorrisJobke MorrisJobke mentioned this issue Nov 6, 2018
29 tasks
@juliushaertl
Copy link
Member

How about removing the white border from the primary buttons? This seems to at least improve the antialiasing a bit.

Before (Firefox):
image

After (Firefox):

image

@MariusBluem
Copy link
Member

How about removing the white border from the primary buttons? This seems to at least improve the antialiasing a bit.

Awesome! I think this would fix this in a nice way ... What do you think @schiessle 🤔

@jancborchardt
Copy link
Member

I think removing the white border as @juliushaertl said is the best call.

We only need these white borders in 2 cases right now: On the log in screen, and when a button is in the header. In other words, when the background is not the default (white).

For that we could add an additional class like .button-border?

@skjnldsv
Copy link
Member

skjnldsv commented Nov 7, 2018

For that we could add an additional class like .button-border?

I'll rather not. We need to keep our design simple, instead of adding too many classes ;)

@jancborchardt
Copy link
Member

Ok, then smth like this (quick note, did not test!):

/* Apply border to primary button if on log in page (and not in a dark container) or if in header */
#body-login :not(body-login-container) .button-primary,
#header .button-primary  {
  border: 1px solid #fff;
}

@jancborchardt
Copy link
Member

And we remove the border from buttons completely otherwise, also from non-primary ones.

What do you think?

@skjnldsv
Copy link
Member

skjnldsv commented Nov 7, 2018

Though if the primary color is too luminous, we'll need the border again :(

@jancborchardt
Copy link
Member

Or a very slight, very light box-shadow?

@skjnldsv
Copy link
Member

skjnldsv commented Nov 7, 2018

We could trick the border with an inset shadow yes. Could work :)
But I doubt shadow on the buttons would look good.

@skjnldsv
Copy link
Member

Any new here?
last call to make a decision is this week!

@skjnldsv skjnldsv added the high label Nov 19, 2018
@MorrisJobke
Copy link
Member

@jancborchardt What to do here?

@jancborchardt
Copy link
Member

I will work on a pull request to remove the border like mentioned at #12294 (comment)

@MorrisJobke
Copy link
Member

I will work on a pull request to remove the border like mentioned at #12294 (comment)

But then the download button in the header of the public page does not look like a button anymore (it's blue on blue background). 🤔

jancborchardt added a commit that referenced this issue Nov 20, 2018
…ontainer) or if in header, fix #12294

Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
@jancborchardt
Copy link
Member

But then the download button in the header of the public page does not look like a button anymore (it's blue on blue background).

It does, as the rule I wrote specifically only sets the border to white for primary buttons on the log in screen or in the header.

Pull request at #12558, please review (and help with the theming question …)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug design Design, UI, UX, etc. high papercut Annoying recurring issue with possibly simple fix.
Projects
None yet
7 participants