Skip to content

Fix Private Eye lock icon underline#288

Open
arpitjain099 wants to merge 1 commit into
18F:mainfrom
arpitjain099:fix/private-eye-lock-underline
Open

Fix Private Eye lock icon underline#288
arpitjain099 wants to merge 1 commit into
18F:mainfrom
arpitjain099:fix/private-eye-lock-underline

Conversation

@arpitjain099

Copy link
Copy Markdown

Fixes #223.

The lock icon from Private Eye is added with a pseudo-element on the anchor. Even with text-decoration set to none, the icon can still pick up underline styling because it stays in the same inline text flow.

This updates the injected style so the icon renders as an inline-block and stays top-aligned. That keeps the same lock glyph and size while preventing the icon underline.

I verified the script still parses and runs by executing assets/js/vendor/private_eye.js in a Node test harness, checking that links are tagged as private-link and the injected style includes display: inline-block plus vertical-align: top.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
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.

Remove underline from Private Eye after element

1 participant