Skip to content

Conversation

@chrisgarrity
Copy link
Contributor

Resolves

Proposed Changes

  • Adjust language icon and caret in menu-bar
    • add slight margin on left and and right (works for both LTR and RTL languages)
  • remove unused style from language-selector.css

Reason for Changes

Align language icon with Scratch logo and tutorials icon

Test Coverage

Current tests run

Browser Coverage

Check the OS/browser combinations tested (At least 2)

Mac

  • Chrome
  • Firefox
  • Safari

Windows

  • Chrome
  • Firefox
  • Edge

Chromebook

  • Chrome

iPad

  • Safari

Android Tablet

  • Chrome

* Adjust language icon and caret in menu-bar
* remove unused style from `language-selector.css`
@chrisgarrity
Copy link
Contributor Author

chrisgarrity commented Oct 4, 2018

Tests are going to fail due to #3305

I'll rebase and push once that PR lands to get the travis build to work.

@benjiwheeler
Copy link
Contributor

Only problem is that the width of $language-selector-width in units.css is currently 3rem, which makes the total width look like:

screen shot 2018-10-05 at 2 34 08 pm

...if we bump this up to 3.5rem, it looks much neater:
screen shot 2018-10-05 at 2 37 52 pm

...alternatively, if we decrease the language-icon height from 1.5rem to 1.25rem, it also looks better, and the icon size seems (to me) more in line with the other menu icons:
screen shot 2018-10-05 at 2 43 23 pm

Copy link
Contributor

@benjiwheeler benjiwheeler 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, but the width and effective right-padding seems out of whack

@chrisgarrity
Copy link
Contributor Author

I'm concerned that we already lose most of the title in some languages on smaller screens - it doesn't seem worth adding more width to the language icon - it already has a lot of space around it. How about reducing the padding instead (using .5rem instead of .75rem):
screen shot 2018-10-09 at 8 25 30 am

Spacing without highlight:
screen shot 2018-10-09 at 8 26 46 am

@carljbowman what do you think? reduce the padding, reduce the icon size, or increase the width?

@chrisgarrity
Copy link
Contributor Author

@benjiwheeler I've updated the css for the language-selector. I spoke with @carljbowman and he thought reducing the padding for the language selector was fine.

@chrisgarrity
Copy link
Contributor Author

BTW, you can try it here: https://chrisgarrity.github.io/scratch-gui/issue/2658-lang-select/
(once travis finishes building)

@benjiwheeler
Copy link
Contributor

OK, LGTM. FYI, this is what it looks like now on my mac chrome:

screen shot 2018-10-11 at 10 45 13 pm

@chrisgarrity
Copy link
Contributor Author

@benjiwheeler that still doesn't look quite right - I wonder if the stylesheet is getting cached?

@benjiwheeler
Copy link
Contributor

Emptied cache and hard reloaded, seems the same. (I'm not sure you create those build branches, or if they're created automatically? Should I pull the PR instead?)

screen shot 2018-10-12 at 8 45 38 am

@benjiwheeler
Copy link
Contributor

Downloaded the diff and tried it locally, looks great! The built branch was just stale.

screen shot 2018-10-12 at 9 59 27 am

@chrisgarrity chrisgarrity merged commit 9d85866 into scratchfoundation:develop Oct 15, 2018
@chrisgarrity chrisgarrity deleted the issue/3301-lang-icon-align branch October 15, 2018 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants