-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[#12116] Instructor viewing results of rubric questions: missing space after checkbox #12151
[#12116] Instructor viewing results of rubric questions: missing space after checkbox #12151
Conversation
Hi @Trumerik, thanks for contributing (: The fix looks good, but I'm wondering if we can make it better by adding the space between the checkbox and the text via css instead. This removes the additional dotted line between the checkbox and the text: Small change, but I think it looks a bit better! Am open to hearing if you have any other suggestions or views as well |
Hi @weiquu, I totally agree with you! I have now pushed a new solution making use of margin-left to get the space without the additional dotted line! Below is a picture of how it looks now: |
@weiquu I assume we have similar 'checkbox followed by text' in other places of the UI. What technique are we using in those places to create space between the checkbox and the text? It is better if we use the same technique everywhere, for consistency. |
@@ -8,7 +8,7 @@ | |||
</div> | |||
<div class="col-sm-8" style="text-align: right;"> | |||
<label class="form-check-label"> | |||
<input id="exclude-self-checkbox" type="checkbox" [(ngModel)]="excludeSelf" (ngModelChange)="getTableData()" class="form-check-input"> <span container="body" class="ngb-tooltip-class" ngbTooltip="Excludes giver's responses to himself/herself from statistics">Exclude self evaluation</span> | |||
<input id="exclude-self-checkbox" type="checkbox" [(ngModel)]="excludeSelf" (ngModelChange)="getTableData()" class="form-check-input"> <span container="body" class="ngb-tooltip-class" ngbTooltip="Excludes giver's responses to himself/herself from statistics" style="margin-left: .33rem;">Exclude self evaluation</span> |
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.
Quick note: let's try to use bootstrap styles as much as possible. But let's see if there are any other checkbox spaces issues first!
Thanks @Trumerik for the research! I found a few where they used According to the Bootstrap docs, |
Thank you @weiquu! |
<div class="col-sm-8" style="text-align: right;"> | ||
<label class="form-check-label"> | ||
<input id="exclude-self-checkbox" type="checkbox" [(ngModel)]="excludeSelf" (ngModelChange)="getTableData()" class="form-check-input"> <span container="body" class="ngb-tooltip-class" ngbTooltip="Excludes giver's responses to himself/herself from statistics">Exclude self evaluation</span> | ||
</label> | ||
<div class="form-check"> |
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.
I believe the .form-check
class can be placed directly in the above div
(i.e. the div
with class col-sm-8
). Then we don't need to add in the extra div
Left one small comment, other than that looks good (: Pinging @zhaojj2209 / @samuelfangjw |
You are correct, thank you @weiquu |
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.
LGTM, thanks for contributing to TEAMMATES!
Fixes #12116
Outline of Solution
Added a space in the beginning of the Exclude self evaluation text in
rubric-question-statistics.component.html