In node edit page, the checkbox is missing a left margin
In extension page, the checkbox is missing a left margin and should be verticaly aligned (top or middle)
see screenshots

Comments

DuneBL created an issue. See original summary.

huzooka’s picture

Re:

  1. Node edit page: we inherit a bad rule from @classy/entity-meta.css:
    .entity-meta__header .form-item {
        margin: 0.25em 0;
    }
    

    That should change only vertical margins, so we'll replace it with margin-top: [something]; and margin-bottom: [something]; as the part of the issue #3023309: Accordion/Sidebar style update.

  2. System modules table: we have not touched that admin component yet, but we will. That issue should be solved there (when we'll have design for that).
huzooka’s picture

dunebl’s picture

This will be very nice!!

lauriii’s picture

Issue tags: +Needs upstream bugfix

This is a pre-existing bug in core. We should open an issue to the Drupal Core issue queue as well.

fhaeberle’s picture

Status: Active » Needs review
StatusFileSize
new978 bytes
new78.29 KB

Could not reproduce the bug on /node/edit but corrected the spacing of the checkbox on the extension page which is removed to an rtl improvement on the table. It works now with rtl/ltr and the correct spacings.

dunebl’s picture

Patch is very nice but have no effect as it apply on the src folder and not on the dist folder.
Looking at the generated code, it is the dist folder which is used
<link rel="stylesheet" media="all" href="/themes/contrib/claro/css/dist/components/system-admin--modules.css?proyag" />
As a side note, I have no clue why there is such duplication of code:

/drupal_root/themes/contrib/claro/css/dist/components

/drupal_root/themes/contrib/claro/css/src/components

But when applying on the dist tree, the bug is fixed.

Regarding node/edit, you are right, the bug seems corrected with the last version.

lauriii’s picture

@DuneBL Patch in #6 has been generated correctly. We use PostCSS to provide support for legacy browsers. More information can be found in the documentation.

fhaeberle’s picture

@DuneBL I would suggest using an Code Editor like VS Code (feels good for frontend work) which shows you which files are modified/ignored by git to better understand a repository. You would then see that the /dist folder is hidden by git which means that you shouldn't normally edit it because it's ignored by cause. Would be great if somebody can review my changes in the patch.

dunebl’s picture

Thank you for the explanation...
I assume that I must run yarn build:css to get the change in the dist folder.
This is not the topic, but when doing this, I got the following error:

yarn run v1.15.2
$ cross-env NODE_ENV=production ./node_modules/.bin/postcss "css/src" --dir "css/dist" --base "css/src"
/bin/sh: 1: cross-env: Permission denied
error Command failed with exit code 126.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Anyway, I have manually copied the change in the dist folder, and the bug is fixed.... But maybe it is better to use yarn.

lauriii’s picture

@DuneBL I'm happy to help to solve that. Could you either ping me on Slack or open a support request in the Claro issue queue?

dunebl’s picture

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

Status: Reviewed & tested by the community » Needs work

Re #6:

+++ b/css/src/components/system-admin--modules.css
@@ -10,9 +10,13 @@
+  padding-left: 1rem;

Nitpick: add comment /* LTR */ here.

fhaeberle’s picture

Assigned: Unassigned » fhaeberle
Status: Needs work » Needs review
StatusFileSize
new1.75 KB

Adding the code comment suggested in #13.

fhaeberle’s picture

Assigned: fhaeberle » Unassigned
huzooka’s picture

Status: Needs review » Needs work
+++ b/css/src/components/system-admin--modules.css
@@ -10,7 +10,11 @@
+<<<<<<< Updated upstream
...
+=======
...
+>>>>>>> Stashed changes

This is an unresolved conflict, please fix it!

fhaeberle’s picture

StatusFileSize
new2.52 KB

Sorry for that mistake. Should be resolved now.

fhaeberle’s picture

Status: Needs work » Needs review
lauriii’s picture

@fhaeberle it seems like there's some additional output in your patch. Please make sure to read the instructions on how to generate a patch for Drupal.

fhaeberle’s picture

StatusFileSize
new642 bytes

Sorry, I'm new to drupal contributing with the patch workflow. A bit confused about the possibilities here. Thanks for pointing me to the right source. I see, I provided a multi-patch, but we require a normal patch here. Here it is. :)

lauriii’s picture

@fhaeberle thank you! The patch looks better now!

Would it be possible to get a before and after screenshot? I'm not sure if I can reproduce the problem anymore.

fhaeberle’s picture

StatusFileSize
new61.4 KB
new61.03 KB
new59.44 KB
new77.09 KB

For sure. Provided screenshots for the problem, screenshots are made with the mobile view but does also appear on the larger desktop viewport. Both ltr/rtl.

huzooka’s picture

Status: Needs review » Reviewed & tested by the community

I think that #20 is fine.

  • lauriii committed 81487fe on 8.x-1.x
    Issue #3047433 by fhaeberle, DuneBL, huzooka: Check box input element...
lauriii’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: -Needs upstream bugfix

Committed and pushed. Thank you!

Status: Fixed » Closed (fixed)

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