-
Notifications
You must be signed in to change notification settings - Fork 2
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
Implement a language switch so that users can choose to view the site in English, Hebrew, or Arabic #1113
Comments
@blms I've applied the Semibold Greta Sans to "E" in the designs "E" is 20px on desktop and 18px on mobile (semibold weight Greta Sans for default and selected) |
- Also refactor type styles into typography module [run percy]
Implement new language switcher design (#1113)
@gissoo the language symbol for Hebrew looks out of line with the English and Arabic |
@kseniaryzhova Ooh, good catch. That looks like a browser difference, since I'm now seeing similar on Firefox but not Safari or Chrome. |
@gissoo couldn't test on mobile since I'm off campus, but everything else works on desktop! Should I close? |
@kseniaryzhova Please leave open and I'll fix the alignment issue you raised. (Also I should mention, the Arabic font is a placeholder, still waiting for the Hassan font from @gissoo but should be ready soon.) |
@gissoo I have the same alignment issue on Chrome too. |
@blms @kseniaryzhova thanks for the comments – @blms the alignment problem exists even after fixing them in the designs? (because I know it was misaligned in the designs) |
@kseniaryzhova Interesting! I suspected this might be a Windows vs Mac thing, and it is indeed. It has to do with the font's "vertical metrics". Here it is on both Windows and Mac Chrome with the margins I set highlighted in orange. Notice how in the Windows screenshot, the distance of the letter from the orange margin is smaller than it is on Mac. So basically on Mac this font has some extra space on top of each character! (Or Windows on the bottom...) Going to try using this tool (which I found in a StackOverflow thread) to edit the fonts and see if that fixes it. |
Fix issue with FrankRuhl font vertical metrics (#1113)
Should be all set now @kseniaryzhova! |
@blms looks great, even the Arabic! Thanks so much, closing! |
testing notes (QA)
dev notes
@blms here are the designs – I'll eventually move them to the Components pages – I've provided select and hover designs for LTR and RTL pages for light and dark mode on desktop and mobile
so on desktop and mobile the toggles will stay in the nav, for mobile this means that they are visible and usable once you've selected the burger menu
You can see the designs on the pages if you zoom out of the Figma page – let me know if you need anything
The text was updated successfully, but these errors were encountered: