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

Set font in <div> instead of <a> #30

Merged
merged 1 commit into from
May 19, 2014
Merged

Set font in <div> instead of <a> #30

merged 1 commit into from
May 19, 2014

Conversation

jplitza
Copy link
Contributor

@jplitza jplitza commented May 16, 2014

Otherwise a parent's font declaration may lead to the .github-fork-ribbon being too big.

Otherwise a parent's font declaration may lead to the `.github-fork-ribbon` being too big.
@simonwhitaker
Copy link
Owner

Hi @jplitza, thanks for the contribution. Can you just explain (to this not-very-good-at-web-dev dummy) how the bug this fixes could occur please? Perhaps by way of an example.

@aik099
Copy link

aik099 commented May 16, 2014

Maybe if the rem or % measure units are used to set font-size on the page, where ribbon is used.

Just a guess.

@jplitza
Copy link
Contributor Author

jplitza commented May 16, 2014

See this jsfiddle where I exaggerated and set body's font-size to 40pt. The red border around the link is much too big.

@aik099 Nope, no crazy relative units are needed, just normal absolute ones.

@aik099
Copy link

aik099 commented May 16, 2014

And with this font size moved to div instead of A all is fine, right?

@jplitza
Copy link
Contributor Author

jplitza commented May 16, 2014

Yes, it is. I updated the jsfiddle to show one working and one non-working example.

@aik099
Copy link

aik099 commented May 16, 2014

Thanks. As ribbon user (see http:https://www.qa-tools.io/) I think the change should be merged.

simonwhitaker added a commit that referenced this pull request May 19, 2014
Set font in <div> instead of <a>
@simonwhitaker simonwhitaker merged commit c1973b5 into simonwhitaker:gh-pages May 19, 2014
@simonwhitaker
Copy link
Owner

Thanks @jplitza, much appreciated. 😄

@jplitza jplitza deleted the patch-1 branch May 19, 2014 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants