-
Notifications
You must be signed in to change notification settings - Fork 232
Removing an inappropriate class used to wrap inline radio form controls. #1239
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
Removing an inappropriate class used to wrap inline radio form controls. #1239
Conversation
@@ -10,7 +10,7 @@ | |||
|
|||
<div class="form-group"> | |||
<label for="actionType" class="required">Lifecycle Action</label><br/> | |||
<div class="radio"> | |||
<div> |
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.
Can you remove the unnecessary div?
+1 to removing edit: based on examples http://getbootstrap.com/css/#checkboxes-and-radios |
1fb0681
to
3e7d1ed
Compare
I use the div as a parent wrap for the radio-inline inputs, so that aren't displayed inline with the main |
app/styles/_forms.less
Outdated
.checkbox-inline { | ||
margin-left: 0; | ||
margin-right: 10px; | ||
} |
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.
Any reason not to do this always (instead of max-width xs)? It seems like it could still be a problem with long labels at any width.
Would just the margin styles work without needing the parent div radio-checkbox-group-inline
?
.radio-inline,
.checkbox-inline {
margin-left: 0;
margin-right: 10px;
}
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.
We only use it on two pages, so should be easy to test the change.
origin-web-console (master) ➜ ag radio-inline
app/views/directives/edit-lifecycle-hook.html
14: <label class="radio-inline">
22: <label class="radio-inline">
app/views/directives/osc-persistent-volume-claim.html
95: <label class="radio-inline">
100: <label class="radio-inline">
105: <label class="radio-inline">
origin-web-console (master) ➜ ag checkbox-inline
origin-web-console (master) ➜
3e7d1ed
to
dd78e13
Compare
Ok, updated so that it always applies and it works fine as well. |
Thanks @sg00dwin , can you fix the indentation since you took out the parent div? |
dd78e13
to
e6511c9
Compare
Indentation corrected |
name="{{type}}-action-newpod" | ||
ng-model="action.type" | ||
value="execNewPod" | ||
aria-describedby="action-help"> |
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.
Sorry, I'm picking nits, but can you indent the attributes as before? I find it harder to read this way.
And switch inline margin from left to right side to allow for alignment left. Fixes openshift#1240 Fixes openshift#1234
e6511c9
to
73d21df
Compare
[merge] |
Evaluated for origin web console merge up to 73d21df |
Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/1054/) (Base Commit: 9b47dfc) |
Fixes #1234
Removed the
.radio
class from two places that useradio-inline
controls which in not needed and adds excessive top and bottom margin.