Closed (fixed)
Project:
Drupal core
Version:
9.2.x-dev
Component:
Olivero theme
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Nov 2020 at 16:18 UTC
Updated:
5 Feb 2021 at 14:59 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #2
proeungComment #3
komalk commentedComment #4
komalk commentedAttached the screenshot for references.
Review the patch.
Comment #5
mherchelThis patch sets the width of the text inputs and textareas to 100%. We need to limit the width of the description text.
Comment #6
komalk commentedComment #7
komalk commentedWorked on #5.
Attached screenshot for reference.
Review the patch.
Comment #8
paulocsLooks 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.
Comment #9
mherchelThis will also only be 70% on small screen widths, which is not desirable. Let's set the max-width to something like
70chComment #10
komalk commentedWorked on #9.
Set the max-width to 60ch.
with using 70ch not getting the expected output.
Attached screenshot for reference.
Comment #11
kostyashupenkoNever 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:cssthat "ch" unit is not presented in our stylelintrc rules, so i have added it.Thoughts?
Comment #12
abhijith s commentedApplied 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
mobile

I'm moving it to RTBC
Comment #13
abhijith s commentedComment #14
spokjePatch #11 doesn't apply any more and needs a reroll.
Comment #15
Pooja Ganjage commentedHi,
Creating a patch for reroll.
Please review the patch.
Thanks.
Comment #16
anmolgoyal74 commentedComment #17
djsagar commentedHi,
Patch #16 is applied successfully and tested.
working fine for me.
Thanks!
Comment #18
mherchelRTBC + 1
Comment #20
lauriiiCommitted 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.
Comment #21
mherchelNo need to port to 9.1. Most people won't notice this :)