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

header icons now sit more vertically centered #8133

Conversation

michaelchadwick
Copy link
Contributor

@stopfstedt
Copy link
Member

this throws things out of alignment for me on Chromium and FF in .

Chromium, fullscreen ❌

vertical spacing around navbar buttons is now uneven.

old

image

new

image

Chromium, mobile ✔️

minor difference in spacing, but looks good.

old

image

new

image

Firefox, fullscreen ❌

vertical spacing around navbar buttons is now uneven.

old

image

new

image

Firefox, mobile ❌

lack of bottom vertical spacing in header.

old

image

new

image

Copy link
Member

@stopfstedt stopfstedt left a comment

Choose a reason for hiding this comment

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

these changes throw the layout off in FF and Chrome.

@michaelchadwick
Copy link
Contributor Author

@stopfstedt thank you for the screenshots. Will look into updating further.

@michaelchadwick michaelchadwick force-pushed the frontend-5700-header-icon-mobile-valign-fix branch from 3e62ec9 to dd52355 Compare September 16, 2024 14:59
@michaelchadwick
Copy link
Contributor Author

@stopfstedt OK, I did a ton more work trying to make this work on both Chrome/Firefox. The spacing is not totally uniform on each due to what I can only assume is rendering engine differences, but I think it's better than it was.

@stopfstedt
Copy link
Member

stopfstedt commented Sep 19, 2024

@michaelchadwick - thanks for making these changes. much improved in mobile and on the login screen on all screen-sizes.

however, the vertical spacing around header elements is now still uneven on fullscreen.

now:
image

before:
image

at least it's consistent now between Chrome and FF.

i'm willing to accept this as a trade-off, but leaving it up to @jrjohnson and/or @dartajax to make a decision here.

stopfstedt
stopfstedt previously approved these changes Sep 19, 2024
@michaelchadwick
Copy link
Contributor Author

@dartajax Belay that for a bit. I have another go at this in me...

@michaelchadwick
Copy link
Contributor Author

@stopfstedt Looks like this file may be the real culprit: https://github.com/ilios/frontend/blob/master/packages/ilios-common/app/styles/ilios-common/fonts.scss

root_font_sizes

Once you get to 1200px, it switches to a calc() value which causes the font-size in the buttons to slowly increase as the viewport does. At 1920px, it switches back to a static size, but either way the buttons get too big for the header and we lose the vertical alignment.

I know we disallow making CSS font-size changes, but we may need to make an exception for the header buttons.

@michaelchadwick michaelchadwick force-pushed the frontend-5700-header-icon-mobile-valign-fix branch from 4f0a14c to 9cef28f Compare September 23, 2024 15:09
@michaelchadwick
Copy link
Contributor Author

@stopfstedt I did some more changes and made it even better...?

@dartajax
Copy link
Member

Just to get this thing going, I added the READY TO MERGE tag - doesn't necessarily mean I am going to immediately merge it but let's see if the tests pass, eh?

Copy link
Member

@dartajax dartajax left a comment

Choose a reason for hiding this comment

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

looks good to me

Copy link
Member

@stopfstedt stopfstedt left a comment

Choose a reason for hiding this comment

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

LGTM.

@michaelchadwick
Copy link
Contributor Author

@dartajax We are good to go code-wise, but Percy is requesting a mess of visual changes for review.

@dartajax dartajax merged commit 299de27 into ilios:master Sep 24, 2024
40 of 41 checks passed
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.

Header not properly aligning icons vertically on Mobile Safari
3 participants