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

Backupcodes button sizes #3752

Closed
MariusBluem opened this issue Mar 7, 2017 · 13 comments · Fixed by #12138 or #12244
Closed

Backupcodes button sizes #3752

MariusBluem opened this issue Mar 7, 2017 · 13 comments · Fixed by #12138 or #12244
Labels
1. to develop Accepted and waiting to be taken care of 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. papercut Annoying recurring issue with possibly simple fix.
Milestone

Comments

@MariusBluem
Copy link
Member

If you want to call something a papercut ... then ... this 😅😜 The buttons should all have the same size 😉 @nextcloud/designers

bildschirmfoto 2017-03-07 um 16 14 01

@MariusBluem MariusBluem added 1. to develop Accepted and waiting to be taken care of design Design, UI, UX, etc. papercut Annoying recurring issue with possibly simple fix. labels Mar 7, 2017
@MariusBluem MariusBluem added this to the Nextcloud 12.0 milestone Mar 7, 2017
@MorrisJobke
Copy link
Member

cc @ChristophWurst

@MorrisJobke MorrisJobke removed this from the Nextcloud 12.0 milestone May 11, 2017
@MorrisJobke MorrisJobke added the good first issue Small tasks with clear documentation about how and in which place you need to fix things in. label May 11, 2017
@MorrisJobke
Copy link
Member

Reason for this is that the left one is a link and the right one is a button. Both with the class button.

Maybe somebody from @nextcloud/designers want to have a look.

@MorrisJobke
Copy link
Member

Or @ChristophWurst wants to migrate the a tag to a button ;)

@ChristophWurst
Copy link
Member

Doesn't the button size depend on the length of the text (which furthermore depends on the language)?

@MariusBluem
Copy link
Member Author

This is about the height of the button.

@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 Oct 1, 2018
@violoncelloCH
Copy link
Member

violoncelloCH commented Oct 27, 2018

I don't know why the <a class="button"> doesn't respect any (min-)height value.
Is it ok to fix it by creating a <button> with the text inside the <a>-tag (and removing the button-class of the link of corse)?

@te-online
Copy link
Contributor

a elements are inline elements and generally don't behave like block elements. (https://developer.mozilla.org/en-US/docs/Web/HTML/Inline_elements)
Why not replace the a with a button? Would make for a better markup. Unless there is actually a link associated to that a element. Then I would experiment with adding something like display: inline-block.

@violoncelloCH
Copy link
Member

<a> is an actual (download)link, so simply changing it to a <button> doesn't work, but display: inline-block does.

@violoncelloCH
Copy link
Member

violoncelloCH commented Oct 28, 2018

should this be added specifically to the css of twofactor_backupcodes or maybe better to the general rules?


/* 'Click' inputs */

directly here? or under a new rule only affecting link buttons?

@te-online
Copy link
Contributor

Cool you made it work 😎
I'd add it to the specific CSS, since I don't know how other people expect .button to work.

However, I have to say that I'm not really familiar with the CSS structure here. @ChristophWurst, can you help us here? How is the process to change something like this in global CSS?

I'm wondering if this height difference is something other places also experience, then it would make sense to change it globally.

@ChristophWurst
Copy link
Member

However, I have to say that I'm not really familiar with the CSS structure here. @ChristophWurst, can you help us here? How is the process to change something like this in global CSS?

I'm wondering if this height difference is something other places also experience, then it would make sense to change it globally.

Summoning our export for the standardization: @skjnldsv 🙌

@skjnldsv
Copy link
Member

skjnldsv commented Oct 30, 2018

Summoning our export for the standardization: @skjnldsv 🙌

export default from skjnldsv

You called? 😁

Yes, we should probably force the .button class to an inline-block :)

violoncelloCH added a commit that referenced this issue Oct 30, 2018
fix #3752

Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
@MorrisJobke MorrisJobke added this to the Nextcloud 15 milestone Oct 30, 2018
@MorrisJobke
Copy link
Member

Fix is in #12138

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of 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. papercut Annoying recurring issue with possibly simple fix.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants