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
Changes for print_form_button() #1109
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have opened several related issues on the tracker, but forgot to add the Fixes #xxx
references in the commit messages.
Other than that, it looks good to me.
yes.. as i see the changes are likely to be discussed and changed, dind't put the "fixes..." right away. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other the my comment, this looks good.
@@ -199,7 +199,7 @@ | |||
?> | |||
<div class="clearfix"></div> | |||
<div class="space-2"></div> | |||
<div class="btn-group-sm"> | |||
<div class="btn-group visible-on-hover"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not very clear to me if removing "-sm" is intentional. If so, why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
two reasons:
- other buttons in the pages are within plain "btn-group"
- to make it apply the margins with the defined css selector:
.btn-group .single-button-form
.
Otherwise, the selector should be repeated for every .btn-group-xx
What do you think?
5a7d880
to
59f9f11
Compare
Rebased, and added the bug references in the commits |
Use 'button' tag instead of 'input', to offer better customization for labels and icons.
Add inline class to single button forms. Now it should not be needed to "pull-left" to place several buttons in line. Fixes: #22871
Add margin between buttons generated by print_form_button(), to be consistent with the general styling of inline buttons in a general form. Fixes: #22870
Make some buttons visible only when hovering over it's container. Applied to: adm_config_report.php, view.php (bugnotes) Fixes: #22872
59f9f11
to
b0c652f
Compare
Some proposals for buttons generated from print_form_button(), and buttons layout in general.
button
tag, instead ofinput
, as the former can include icons. We use intensively these buttons in manage pages, one or several in each row of a table. Having the full text for all buttons add clutter to the page, so at some point they could be changed to icons