Problem/Motivation

A pixel or two higher would look right.

Steps to reproduce

Check any accordion element for example - go to /admin/config/system/site-information

Proposed resolution

Add margin-top: -0.125rem; in .claro-details__summary::before

Remaining tasks

Review

User interface changes

Before/After

image

API changes

NA

Data model changes

NA

Release notes snippet

NA

Issue fork drupal-3377198

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bnjmnm created an issue. See original summary.

Harish1688’s picture

looking for this issue..

Harish1688’s picture

Status: Active » Needs review
FileSize
1.17 KB
9.87 KB

Hi,

Reproduced the issue on local and created a patch for issue 'details up chevron not quite vertically aligned in forced color mode'. attached a image for reference.

Test Steps:
1. setup the Drupal 11.x and claro theme as backend theme=.
2. moved on path 'admin/config/system/site-information' and active the forced color in browser, and verified the issue (chevron not align vertically).
3. create 3377198-3.patch , Need Review.

After Patch:
issue image

Vidushi Mehta’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
5.29 KB

Reviewed the patch, the chevron is vertically top aligned after patch.

longwave’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/core/themes/claro/css/components/details.css
@@ -310,7 +310,7 @@ td .claro-details {
+    margin-top: calc(0.125rem / -1);

Why not just

margin-top: -0.125rem;

?

Side-by-side screenshots from before and after would help as well.

kostyashupenko’s picture

Status: Needs work » Needs review
FileSize
1.15 KB
3.79 KB

details chevron

Vidushi Mehta’s picture

I've reviewed the patch #6 but still find the alignment issue, Attaching the before and after screenshots for the same. I am keeping the status same as Needs review so that we'll have more reviews on this

kostyashupenko’s picture

We don't need top alignment. It should be vertically centered

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Seems suggestion in #5 worked.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 6: 3377198-6.patch, failed testing. View results

shweta__sharma’s picture

Looks like this is already aligned I measured with a ruler and the arrow top and bottom height is 19px
See screenshots for reference.

bnjmnm’s picture

@shweta__sharma Perhaps I'm misreading your images, but the issue specifies this is related the up-pointing chevron, and both screenshots you provided are examining the down-pointing one.

shweta__sharma’s picture

Yes @bnjmnm You are correct I was checking only up-pointing chevron. Down-pointing chevron icon has a 1-2 point px issue.

shweta__sharma’s picture

Issue summary: View changes

Issue summary Updated. I don't think it has any pending work left. Based on #5 Moving status to RTBC now
Thanks

shweta__sharma’s picture

Status: Needs work » Reviewed & tested by the community
nod_’s picture

Status: Reviewed & tested by the community » Needs work

can someone reup a path that applies or better yet a MR?

thx

karanpagare made their first commit to this issue’s fork.

sakthi_dev’s picture

The mentioned lines are removed. Is the change really required.

karanpagare’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

  • nod_ committed c73225d6 on 11.x
    Issue #3377198 by karanpagare, Harish1688, kostyashupenko, Vidushi Mehta...

  • nod_ committed 95f98bda on 10.3.x
    Issue #3377198 by karanpagare, Harish1688, kostyashupenko, Vidushi Mehta...
nod_’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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