Problem/Motivation
Checking the 'Structure -> Block layout' page, it has been observed that the theming of the weight field (select box) is inconsistent compared to the other tables views fields, it should be the same as region field style (select box).
This discrepancy has been tested on versions 9.x, 10.x, and 11.x of the core.
Steps to reproduce
- Drupal 10.0.x and set the claro theme as admin theme
admin/structure/block/list/claroon path click on show row weights button- check the weight field (styling is different from other field).
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | 3362924-12.patch | 4.09 KB | frank8199 |
| #11 | interdiff_8-10.txt | 4.09 KB | frank8199 |
| #11 | 3362924-10.patch | 4.08 KB | frank8199 |
| #9 | 3362924 after patch8 applied .png | 87.48 KB | Harish1688 |
| #8 | interdiff-6_8.txt | 5.3 KB | gauravvvv |
Issue fork drupal-3362924
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3362924-the-weight-field
changes, plain diff MR !4089 /
changes, plain diff MR !4090
Comments
Comment #2
shwetaDevkate commentedComment #3
shwetaDevkate commentedPatch attached. please review.
Comment #4
shwetaDevkate commentedComment #5
cilefen commentedThere is a comment in the diff that says “iOS”, which doesn’t really convey information and also this issue doesn’t mention specific browsers or platforms.
Comment #6
gauravvvv commentedI have attached a patch and added the interdiff with #4. It was not just about padding property, the other properties like font-size, line-height and min-height were not same that's why styling was inconsistent. I have added all of them. please review
Comment #7
Harish1688 commentedHi @Gauravvvv,
I thoroughly tested patch #6 and verified it functions correctly, successfully resolving the issue on popular browsers including Chrome, Safari, and Mozilla. However, it has inadvertently affected all text fields (input text, select box) styling throughout the claro theme, may be it should be limited only block layout page.
check patch impact on path:
admin/structure/types/manage/articleadmin/structure/types/manage/article/form-displayimages attached for references :
Comment #8
gauravvvv commentedI have fixed the issue and attached interdiff with #6. please review
Comment #9
Harish1688 commentedHi @Gauravvvv,
I thoroughly tested (3362924-8.patch) and verified that it functions correctly, successfully resolving the issue on 'Structure -> Block layout' ,
but, it has inadvertently affected on path 'admin/structure/types/manage/article/form-display' (weight filed) styling. it should be theme like other sibling field.
Comment #11
frank8199 commentedI have attached a patch and added the interdiff with #8.
In order to keep consistency across different pages decided to NOT apply the modifier `extrasmall` to form select and form text elements.
Tested on following pages:
/admin/content/admin/structure/types/manage/article/display/admin/structure/block/admin/structure/taxonomy/manage/tags/overview/admin/structure/menu/manage/admin/admin/people/rolesComment #12
frank8199 commentedRe-rolling patch #11 as it fails to apply.
Comment #13
smustgrave commentedAs a bug it could use a test case.
Comment #19
quietone commentedThe Claro theme was approved for removal in #3576460: [policy, no patch] Deprecate and remove Claro.
This is Postponed. The status is set according to two policies. The Remove a core extension and move it to a contributed project and the Extensions approved for removal policies.
The deprecation work is in #3576668: [meta] Tasks to deprecate Claro and the removal work in #3584638: [meta] Tasks to remove the Claro theme.