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

Label doesn't take long names into account #12068

Closed
5 of 9 tasks
Beee4life opened this issue Jan 19, 2019 · 6 comments
Closed
5 of 9 tasks

Label doesn't take long names into account #12068

Beee4life opened this issue Jan 19, 2019 · 6 comments

Comments

@Beee4life
Copy link

  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened.

A label is not aligned properly when the previous label is long(er).
This is due to the fact spans are used instead of divs.
Now <br class="clear"> doesn't do the trick (see screenshot)

screenshot 2019-01-19 at 21 11 12

Please describe what you expected to happen and why.

I expected the fields to align properly.

How can we reproduce this behavior?

  1. Create a post type with a long name
  2. Add a taxonomy
  3. Activate breadcrumbs

Technical info

  • If relevant, which editor is affected (or editors):
  • Classic Editor
  • Gutenberg
  • Classic Editor plugin
  • Which browser is affected (or browsers):
  • Chrome
  • Firefox
  • Safari
  • Other

Used versions

  • WordPress version: 5.0.3
  • Yoast SEO version: 9.4
  • Classic Editor plugin version: 1.3
  • Tested with theme: Twentyseventeen

Suggested fix

Place every input + label in their own div.

@Djennez
Copy link
Member

Djennez commented Jan 28, 2019

Hi @Beee4life and thank you for your submission. I tried to reproduce the issue, but even going over the top on name lengths I was unable to reproduce the indentation issue that you are showing:

screenshot 2019-01-28 at 08 53 05

The vertical alignment isn't the best, but I was really hoping to somehow recreate the indent of the middle label on your screenshot. Anything else that you can think of that might cause that?

@Beee4life
Copy link
Author

I just checked, it still occurs in my installation.

But regardless if you can reproduce it, the code would be better if every element had its own row/container/div. Now it's just a bunch of spans separated by <br class="clear">.
That is what causing it (imho)....

This is the screenshot with the label selected in the inspector. As you can see the sd_date_type element is not properly aligned, because it's 'stuck' against the label of sd_company_type.

Solution: every row/input in it's own element

screenshot 2019-01-28 at 09 35 44

@jonoalderson
Copy link

Ah, we should definitely wrap these fields in containers. Makes sense.

@Beee4life
Copy link
Author

I just noticed this issue still occurs, so I thought I check if there might be something on my side interfering with it.

When playing with the css I noticed if you remove the line margin: 5px 0; (or only the top or bottom margin) in yst_plugin_tools-1100.min.css the output shows as expected.

It's only a quick fix, but every row should still 'needs' to be in its own element.

@Djennez
Copy link
Member

Djennez commented May 6, 2019

The issue is with the plugin, not on your side :)

I found that we already had an issue open regarding this problem, so I will close this thread in favor of that one.

As it currently doesn't break functionality I don't see it happening that we'll be picking this up quickly. However, we welcome any patches that the community may have to fix this.

@Djennez Djennez closed this as completed May 6, 2019
@omarreiss omarreiss removed the backlog label May 6, 2019
@Beee4life
Copy link
Author

No prob... Seems I also missed this one when creating it. Will follow that one.

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

No branches or pull requests

4 participants