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

FocalPointPicker unit controls are to small for Swedish translations #28582

Closed
stefanfisk opened this issue Jan 29, 2021 · 6 comments
Closed
Labels
[Block] Cover Affects the Cover Block - used to display content laid over a background image CSS Styling Related to editor and front end styles, CSS-specific issues. Good First Issue An issue that's suitable for someone looking to contribute for the first time [Type] Bug An existing feature does not function as intended

Comments

@stefanfisk
Copy link
Contributor

Description

<FocalPointPicker> hardcodes the width of <UnitControl> to 100px, which is not enough to fit the Swedish translations of left and top (vänster and toppen).

Step-by-step reproduction instructions

Switch to Swedish and try adjusting the focal point of a cover block.

Expected behaviour

The strings should fit.

Actual behaviour

The labels are not wide enough to fit the strings.

Screenshots or screen recording

image

WordPress information

  • WordPress version: 5.6
  • Gutenberg version: Not installed
  • Are all plugins except Gutenberg deactivated? Yes
  • Are you using a default theme (e.g. Twenty Twenty-One)? Yes

Device information

  • Device: Desktop
  • Operating system: macOS 11.1
  • Browser: Chrome 88.0.4324.96
@ockham
Copy link
Contributor

ockham commented Feb 1, 2021

cc/ @ItsJonQ 👋 😄

@gwwar gwwar added the [Block] Cover Affects the Cover Block - used to display content laid over a background image label Feb 2, 2021
@paaljoachim
Copy link
Contributor

paaljoachim commented Feb 2, 2021

I believe it only needs some CSS adjustments of the space where we see the percentage numbers.

@gwwar gwwar added Good First Issue An issue that's suitable for someone looking to contribute for the first time [Type] Bug An existing feature does not function as intended CSS Styling Related to editor and front end styles, CSS-specific issues. labels Feb 2, 2021
@ItsJonQ
Copy link

ItsJonQ commented Feb 9, 2021

Apologies! I forgot to follow up on this one. We had a similar issue with the FontSizePicker.
Will see what I can do.

I'm just leave a note saying that I believe this is a symptom of a larger design issue in that we're missing a standardized way to render UI - specifically using grids, horizontal stacking elements, and/or responsive containers.

I don't have an immediate solution. However, the recent inclusion of various layout primitives for the new Component System may help us here.

@lukecarbis
Copy link
Contributor

This appears to be fixed in Gutenberg 10.0.0. (Tested using the RC1 build)

Screen Shot 2021-02-12 at 7 50 16 am

@ItsJonQ
Copy link

ItsJonQ commented Feb 11, 2021

Thanks @lukecarbis !!

The underlying Flex layout component was recently updated:
#28609.

It's better at adapting to inner content.
It should help for now 👍

P.S. Control labels like that one will be improved some more with this update:
#28568

@paaljoachim
Copy link
Contributor

Tested with WordPress 5.7 RC1
Gutenberg 10.0.2
Twenty Twenty One.

Swedish-Focal-picker-Cover-block.mp4

Issue has been fixed and I will close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Cover Affects the Cover Block - used to display content laid over a background image CSS Styling Related to editor and front end styles, CSS-specific issues. Good First Issue An issue that's suitable for someone looking to contribute for the first time [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

6 participants