Skip to content
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

h4 tag change in font weight for fixing issue (#3696) #3767

Merged
merged 6 commits into from
Jul 1, 2021

Conversation

doitpratik
Copy link
Contributor

@doitpratik doitpratik commented Jun 9, 2021

Proposed Changes

knative_h4

@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Jun 9, 2021
@knative-prow-robot knative-prow-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jun 9, 2021
@knative-prow-robot
Copy link
Contributor

Hi @soham283. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@netlify
Copy link

netlify bot commented Jun 9, 2021

✔️ Deploy Preview for dev-knative ready!

🔨 Explore the source changes: 187608b

🔍 Inspect the deploy log: https://app.netlify.com/sites/dev-knative/deploys/60dcbd3d3544a70007277768

😎 Browse the preview: https://deploy-preview-3767--dev-knative.netlify.app

@omerbensaadon
Copy link

CC @snneji @csantanapr


/* Giving h4 tag distinctive style because it is non-differntial with bold text */
.md-typeset h4 {
font-weight: 400;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

font-weight: 400 is the same as normal text (see https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight#values), so Im not sure this is really an improvement :(.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The #3696 issue it was stated that bold text and h4 tags context must have distinct style so that it can be recognized easily
that's why I came up with this

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, but this makes it so that the h4 tags are impossible to distinguish from regular text, which is even worse than being hard to distinguish from bold text?

Copy link
Contributor Author

@doitpratik doitpratik Jun 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe increasing font-size may work. initially i thinked about that, but also thought if styling can make difference

@doitpratik
Copy link
Contributor Author

Now updated the commit by changing font size, and removed font weight which were making is difficult to differentiate with the normal text.
@snneji @julz @omerbensaadon
have a look on the new commit made

@snneji
Copy link
Contributor

snneji commented Jun 11, 2021

Hi @soham283, thanks for working on this!

I think 1.0rem H4 font size looks a bit too large and heavy compared to H3 headings. I did a few tests in my browser. My personal preference is ~0.88rem. I was split between having the standard or a lighter font weight. My preferences are as follows:

  • For the standard font weight (700), I prefer the H4 font size to be between 0.86 and 0.88 rem. Example page:
    Comparative heading size 2 - weight 700
    Headings within text - H4 weight 700

  • For a lighter font weight (400), I prefer the H4 font size to be a bit larger — between 0.88 and 0.9 rem. Example page:
    Comparative heading size 3 - weight 400
    Headings within text - H4 weight 400

I suppose this is a matter of personal taste so feel free to disagree @soham283, @julz, and @omerbensaadon!

@csantanapr
Copy link
Member

@snneji can you take another look when you have a chance?

@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 23, 2021
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 30, 2021
@snneji
Copy link
Contributor

snneji commented Jul 1, 2021

/lgtm

Copy link
Member

@julz julz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 1, 2021
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: julz, soham283

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants