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
Social login buttons alignment #5489
Comments
Hi, @janimo 😄. Thanks for reporting! This was done intentionally, so the buttons aren't too big if there's only one. Using a flex layout would probably solve this issue, but then the case where there are two elements on the first row and one element on the second one would be tricky 🤔. Since the current behaviour is good enough in most cases, this isn't currently a priority for us, but pull requests are welcome 😉. |
Hi Javier :), Actually, having the buttons full width each on a separate row may not be a bad idea :) This can be obtained with something as simple as
Any number of buttons autofilling the width of a single row may only be possible with Foundation's xy-grid . |
Hi, @janimo 😄. It's also common to display the login items on the same row, though 🤔. Maybe we could start using grid layouts, since support for it is pretty much universal nowadays 🤔. Are you familiar with them? Would something like this make sense? .oauth-logins { /* Container we'd have to add, while removing all the column small-12 etc... classes */
column-gap: rem-calc(map-get($grid-column-gutter, medium));
display: grid;
grid-template-columns: repeat(auto-fit, minmax(8em, 1fr));
} |
It probably makes sense to use CSS Grid, but I don't know how much effort it would be to switch across the codebase. That said, my CSS skills are minimal :/ |
When some of the options are turned off, the rest of the buttons do not fill the horizontal space.
The text was updated successfully, but these errors were encountered: