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
coalaonline.html: Change "Add Bear" button font to Roboto #284
Conversation
partials/tabs/coalaonline.html
Outdated
@@ -146,7 +146,8 @@ <h4>Optional Settings</h4> | |||
<div class="row blue-grey darken-4 white-text z-depth-1 no-margin"> | |||
<span> | |||
<a class="waves-effect grey-text text-lighten-2"> | |||
<i ng-click="add_bears(section)" class="fa fa-plus-circle bears-icon-small" aria-hidden="true"> ADD BEAR | |||
<i ng-click="add_bears(section)" class="fa fa-plus-circle bears-icon-small" aria-hidden="true"> |
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.
Line contains following spacing inconsistencies:
- Trailing whitespaces.
Origin: SpaceConsistencyBear, Section: spacing
.
The issue can be fixed by applying the following patch:
--- a/tmp/tmp01opxl72/partials/tabs/coalaonline.html
+++ b/tmp/tmp01opxl72/partials/tabs/coalaonline.html
@@ -146,7 +146,7 @@
<div class="row blue-grey darken-4 white-text z-depth-1 no-margin">
<span>
<a class="waves-effect grey-text text-lighten-2">
- <i ng-click="add_bears(section)" class="fa fa-plus-circle bears-icon-small" aria-hidden="true">
+ <i ng-click="add_bears(section)" class="fa fa-plus-circle bears-icon-small" aria-hidden="true">
<span style="font-family:'Roboto';">ADD BEAR</span>
</i>
</a>
partials/tabs/coalaonline.html
Outdated
@@ -146,7 +146,8 @@ <h4>Optional Settings</h4> | |||
<div class="row blue-grey darken-4 white-text z-depth-1 no-margin"> | |||
<span> | |||
<a class="waves-effect grey-text text-lighten-2"> | |||
<i ng-click="add_bears(section)" class="fa fa-plus-circle bears-icon-small" aria-hidden="true"> ADD BEAR | |||
<i ng-click="add_bears(section)" class="fa fa-plus-circle bears-icon-small" aria-hidden="true"> |
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.
Trailing Whitespace: Trailing white spaces are unnecessary and can complicate diffs: Remove the ' ' at the end of the line.
Origin: HTMLLintBear, Section: html
.
Travis tests have failedHey @Akhelesh, 1st Builddocker run -v=$(pwd):/app --workdir=/app coala/base coala --ci
|
partials/tabs/coalaonline.html
Outdated
@@ -146,7 +146,8 @@ <h4>Optional Settings</h4> | |||
<div class="row blue-grey darken-4 white-text z-depth-1 no-margin"> | |||
<span> | |||
<a class="waves-effect grey-text text-lighten-2"> | |||
<i ng-click="add_bears(section)" class="fa fa-plus-circle bears-icon-small" aria-hidden="true"> ADD BEAR | |||
<i ng-click="add_bears(section)" class="fa fa-plus-circle bears-icon-small" aria-hidden="true"> | |||
<span style="font-family:'Roboto';">ADD BEAR</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.
Great. You've found the button and changed it.
However, we avoid inline styles.
where is the times new roman coming from?
note that bears-icon-small
and similar are defined in http://github.com/coala/coalaCSS
Probably the fix needs to occur there.
And probably the solution is not adding Roboto
to bears-icon-small
, but requires finding why Times New Roman is being inherited and globally disabling it at the root of the problem.
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.
The root of the problem here is the .fa class of the font awesome icon. Since the "ADD BEAR" text has been written within the tag, the style "font-family: FontAwesome" automatically gets applied to the text.
At present only the:
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: Roboto;
}
style is the best option from the http://github.com/coala/coalaCSS file to apply the Roboto font-family to the text. But this causes the styles of the materialize.css file heading tags to be applied automatically too.
We can define in a new class in the CoalaCSS file to attend to this particular issue. What do you suggest?
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.
Yeah, new class in coalaCSS sounds good!
What about if we changed the order of the CSS files, like moving FA https://github.com/coala/landing-frontend/blob/master/index.html#L35 before coalaCSS ? |
What about moving the text outside of the icon? that's usually the way its done. |
I agree with @blazeu, you should try moving the button text out of the |
Here, I moved the label text into parent anchor tag from the tag supposed to be used for icon and the results are satisfactory: <a class="waves-effect grey-text text-lighten-2">
<i ng-click="add_bears(section)" class="fa fa-plus-circle bears-icon-small" aria-hidden="true"></i> ADD BEAR
</a> If you want to have bold label then add a new class called |
@ksdme yes it works. Sorry I couldn't get to this solution quick. What should I do to my PR for coalaCSS now? Should I delete it and create a new one? |
You can let it be open for now, when this PR gets merged without any changes being required in coalaCSS we can have that closed. Please keep it open for now. |
partials/tabs/coalaonline.html
Outdated
<i ng-click="add_bears(section)" class="fa fa-plus-circle bears-icon-small" aria-hidden="true"> ADD BEAR | ||
</i> | ||
<i ng-click="add_bears(section)" class="fa fa-plus-circle bears-icon-small" aria-hidden="true"></i> | ||
ADD BEAR |
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.
not required, the icon has enough padding.
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 am very sorry I dragged this issue so long because of my small mistakes.
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.
Don't worry, this shows how insistent you are on learning.
partials/tabs/coalaonline.html
Outdated
@@ -146,8 +146,8 @@ <h4>Optional Settings</h4> | |||
<div class="row blue-grey darken-4 white-text z-depth-1 no-margin"> | |||
<span> | |||
<a class="waves-effect grey-text text-lighten-2"> | |||
<i ng-click="add_bears(section)" class="fa fa-plus-circle bears-icon-small" aria-hidden="true"> ADD BEAR | |||
</i> |
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.
Last request for change, doesn't require this change, you can keep this in a separate line.
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.
Clarification: I mean </i>
can be left in a new line.
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 didn't catch that, means icon tags do not have to be on the same line. Am I right?
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.
Yeah.
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.
coala is always spelled with a lower case c, please fix your commit message.
This changes the font of the "Add Bear" button on coala online from Times New Roman to Roboto. Closes coala#270
ack 15d52f8 |
@gitmate-bot ff |
Hey! I'm GitMate.io! This pull request is being fastforwarded automatically. Please DO NOT push while fastforward is in progress or your changes would be lost permanently |
@jayvdb Looks like the ff did not go through. |
@gitmate-bot ff |
Hey! I'm GitMate.io! This pull request is being fastforwarded automatically. Please DO NOT push while fastforward is in progress or your changes would be lost permanently |
Automated fastforward with GitMate.io was successful! 🎉 |
This changes the font of the "Add Bear" button on Coala Online
from Times New Roman to Roboto.
Closes #270
For short term contributors: we understand that getting your commits well
defined like we require is a hard task and takes some learning. If you
look to help without wanting to contribute long term there's no need
for you to learn this. Just drop us a message and we'll take care of brushing
up your stuff for merge!
Checklist
them.
individually. It is not sufficient to have "fixup commits" on your PR,
our bot will still report the issues for the previous commit.) You will
likely receive a lot of bot comments and build failures if coala does not
pass on every single commit!
After you submit your pull request, DO NOT click the 'Update Branch' button.
When asked for a rebase, consult coala.io/rebase
instead.
Please consider helping us by reviewing other peoples pull requests as well:
cobot mark wip <URL>
to get it outof the review queue.
The more you review, the more your score will grow at coala.io and we will
review your PRs faster!