Problem/Motivation

- This particular issue came out from the design QA review process conducted by @jwitkowski79.
- The line length for the labels below the input fields is pretty long compared to the font size. Can we make the width of the shorter? See attached screenshot for suggestions. Also, when there is a label, can we increase the margin to the field below just a tad? Included example in the attached screenshot below.

Steps to reproduce

- Visit the "Create a new account" page.

Proposed resolution

- See attached below for the proposed resolution.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

proeung created an issue. See original summary.

proeung’s picture

Title: [Olivero Theme] [Design QA]: Tighten the column count of the form helper text » [Olivero Theme] [Design QA]: Adjust the column count of the form helper text container
komalk’s picture

Assigned: Unassigned » komalk
komalk’s picture

Assigned: komalk » Unassigned
Status: Active » Needs review
StatusFileSize
new1009 bytes
new70.33 KB
new71.64 KB

Attached the screenshot for references.
Review the patch.

mherchel’s picture

Status: Needs review » Needs work

This patch sets the width of the text inputs and textareas to 100%. We need to limit the width of the description text.

komalk’s picture

Assigned: Unassigned » komalk
komalk’s picture

Assigned: komalk » Unassigned
Status: Needs work » Needs review
StatusFileSize
new857 bytes
new1.3 KB
new111.47 KB
new122.27 KB

Worked on #5.
Attached screenshot for reference.
Review the patch.

paulocs’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new51.18 KB

Looks good to me.
Lets see if the maintainers agree to use 70% for the form item description. Or if we have to use JS to do it.

mherchel’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/core/themes/olivero/css/components/form.css
@@ -131,6 +131,7 @@ tr .form-item,
+  max-width: 70%;

This will also only be 70% on small screen widths, which is not desirable. Let's set the max-width to something like 70ch

komalk’s picture

Status: Needs work » Needs review
StatusFileSize
new148.97 KB
new859 bytes
new789 bytes

Worked on #9.
Set the max-width to 60ch.
with using 70ch not getting the expected output.
Attached screenshot for reference.

kostyashupenko’s picture

StatusFileSize
new531 bytes
new1.41 KB

Never used "ch" unit, but looks like it cleanly resolve this issue. can-i-use says we can use this unit and compatibility is completely matched to browser-requirements, except of Opera Mini only
Moreover, i have tested this patch manually in Firefox, Safari, Chrome, MS Edge, IE11 and it works as expected
I got one problem on yarn lint:css that "ch" unit is not presented in our stylelintrc rules, so i have added it.

Thoughts?

abhijith s’s picture

Applied patch #11 and it works fine.The labels below input fields are shortened.As mentioned in the #11 it has a wide compatibility over browsers.

Including screenshots after applying the patch:
Desktop
desktop

mobile
mobile

I'm moving it to RTBC

abhijith s’s picture

Status: Needs review » Reviewed & tested by the community
spokje’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs reroll

Patch #11 doesn't apply any more and needs a reroll.

Pooja Ganjage’s picture

StatusFileSize
new1.41 KB

Hi,

Creating a patch for reroll.

Please review the patch.

Thanks.

anmolgoyal74’s picture

Status: Needs work » Needs review
StatusFileSize
new1.45 KB
djsagar’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new62.48 KB
new66.52 KB
new68.4 KB
new74.09 KB

Hi,

Patch #16 is applied successfully and tested.

working fine for me.

Thanks!

mherchel’s picture

RTBC + 1

  • lauriii committed 33c3de6 on 9.2.x
    Issue #3180281 by komalk, kostyashupenko, anmolgoyal74, Pooja Ganjage,...
lauriii’s picture

Issue tags: -Needs reroll

Committed 33c3de6 and pushed to 9.2.x. Thanks!

Leaving open for 9.1.x commit because I'm not sure we're allowed to make the change for the stylelint rules there.

mherchel’s picture

Version: 9.1.x-dev » 9.2.x-dev
Status: Reviewed & tested by the community » Fixed

No need to port to 9.1. Most people won't notice this :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.