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

fix vertical alignment of github stars button in all states #3006

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

untitaker
Copy link
Contributor

Description

Without uBlock, the button's alt-text would be 1px lower than the rest
of the nav items, and inconsistently capitalized.

With uBlock, the button would be slightly too high up. Screenshot of problem:

Screenshot from 2024-11-08 01-52-34
Screenshot from 2024-11-08 01-52-00

The solution is to apply styles on the span that GitHub's JS inserts.
However, using margin will make the entire nav jump during pageload, so
position: relative seems more robust there.

Testing

Tested in Firefox and Chrome latest

Checklist

  • I have read the contribution guidelines
  • I have targeted this PR against the correct branch (master for website changes, dev for
    source changes)
  • This is either a bugfix, a documentation update, or a new feature that has been explicitly
    approved via an issue
  • I ran the test suite locally (npm run test) and verified that it succeeded

Without uBlock, the button's alt-text would be 1px lower than the rest
of the nav items, and inconsistently capitalized.

With uBlock, the button would be slightly too high up.

This is on Firefox.

The solution is to apply styles on the `span` that GitHub's JS inserts.
However, using margin will make the entire nav jump during pageload, so
position: relative seems more robust there.
@Telroshan Telroshan added website Non-documentation website issues ready for review Issues that are ready to be considered for merging labels Nov 8, 2024
Copy link
Collaborator

@alexpetros alexpetros left a comment

Choose a reason for hiding this comment

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

okay, thanks!

@alexpetros alexpetros merged commit 8d07de9 into bigskysoftware:master Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review Issues that are ready to be considered for merging website Non-documentation website issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants