-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Add block wide expanded button class. #586
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
Conversation
|
Thank you for submitting this pull request, however I do not see a valid CLA on file for you. Before we can merge this request please visit https://yahoocla.herokuapp.com/ and agree to the terms. Thanks! 😄 |
|
CLA is valid! |
|
Thanks. Have to think this through. Might take a bit of time. |
|
No prob @lkraav. 👍 |
|
@mariosant maybe a dumb question, but why do we need the additional classes if they all set it the width to the same value (i.e. 100%)? |
|
@redonkulus not a dumb question at all! The additional classes expand the buttons on several viewport widths. |
|
@mariosant I guess what I meant was that the default width is already .pure-button-expanded {
width: 100%;
}Why do you need to set the same width for all the break points? |
|
Hello @mariosant , Would be good if you explained your proposed changes from conflicting files a bit more.
Looking forward to your comment. Thanks in advance! |
|
Hi, I apologize for the delayed response. It has been a busy month and this slipped of my attention. The need for this PR was an expanded button (width: 100%). Sometimes though, this needs to get done on smaller viewports, while not expanding on larger devices (think of mobile full width buttons). By "opposite way" grid does, I mean that it expands on the breakpoint defined and smaller viewports. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Issue was closed because of inactivity. If you think this is still a valid issue, please file a new issue with additional information. |
This is an example implementation for the #585. It adds the following classes:
.pure-button-expandedpure-button-sm-expandedpure-button-md-expandedpure-button-lg-expandedpure-button-xl-expandedIt would be very important to note here that the responsive classes works the opposite way grid does. The case here, is a button to be expanded in smaller screens and normal in larger. So for example
pure-button-sm-expandedhas@media screen and (max-width: 35.5em)media query, which implements the behaviour described above.What do you guys think?