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: Tweak to center info icon #224

Merged
merged 1 commit into from
Aug 22, 2022
Merged

fix: Tweak to center info icon #224

merged 1 commit into from
Aug 22, 2022

Conversation

jonathonherbert
Copy link
Contributor

What does this change?

A small tweak to keep the information icon added in #217 centered in our consuming CMS.

Before After
Screenshot 2022-08-22 at 14 12 56 Screenshot 2022-08-22 at 14 37 10

Quite subtle – I've adjusted the position of the icon so it should be dead centre, and removed the gray border above the coloured banner, which in my eyes altered the perception of central-ness for the icon.

How to test

Take a look at the screenshots, or run locally. (Test in Composer is possible via the instructions in the readme.) Do you get a sense of ... geometric harmony?

@jonathonherbert jonathonherbert requested a review from a team August 22, 2022 13:40
@paperboyo
Copy link

💎

Copy link

@dskamiotis dskamiotis left a comment

Choose a reason for hiding this comment

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

Tested Locally - running Typeright, Prosemirror-typerighter and checking in the sandbox: https://prosemirror-typerighter.local.dev-gutools.co.uk/

@@ -54,13 +54,11 @@ export const getPopperConfig = (
};

const tooltipIconView = css`
padding: 2px;
height: 20px;
height: 18px;

Choose a reason for hiding this comment

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

I think the padding had n impact in the i being very slightly off centre.
This seems to have done the trick :)

@jonathonherbert jonathonherbert merged commit 6d409e6 into main Aug 22, 2022
@jonathonherbert jonathonherbert deleted the jsh/styling-tweaks branch August 22, 2022 14:55
@github-actions
Copy link

🎉 This PR is included in version 5.20.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants