Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alayham’s picture

Priority: Normal » Minor
Status: Active » Needs review
FileSize
20 KB
1.13 KB

This shot shows the dropbutton widget in views_ui after appying the attached patch, as well after applying the other 2 related patches for views_ui module: #2287381: views_ui dropbuttons display is not RTL friendly and #2286923: views_ui dropbuttons are not RTL friendly

Dropbutton after the fix

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Much better

alexpott’s picture

Status: Reviewed & tested by the community » Needs work

We need to add /* LTR */ to the corresponding ltr css rules

LewisNyman’s picture

Issue tags: +CSS, +frontend
+++ b/core/themes/seven/css/components/dropbutton.component.css
@@ -183,12 +183,25 @@
+[dir="rtl"].js .dropbutton-wrapper .dropbutton-widget .dropbutton-toggle button {
+  border-right: 1px solid #a6a6a6;
+  border-left: 0;
+}
+

We don't tend to add space between selectors unless there is a comment

Also, can we get a few screenshots of non-views pages to make sure we aren't causing regressions?

alayham’s picture

Status: Needs work » Needs review
FileSize
1.32 KB
14.66 KB

Thanks for the corrections. Here is the patch again, with a shot of the content types page.
Content types

alayham’s picture

Status: Needs review » Reviewed & tested by the community

This is related to #2287381: views_ui dropbuttons display is not RTL friendly and should be committed as well to fix the issue.

webchick’s picture

Status: Reviewed & tested by the community » Needs review

Please don't RTBC your own patch. Sounds like Lewis was asking for some screenshots.

LewisNyman’s picture

Status: Needs review » Needs work
FileSize
33.52 KB

Ah sorry I forgot to review this. I noticed this behaviour on hover:

alayham’s picture

Status: Needs work » Needs review

Lewis, This behavior is something different and not related to the patch I sent. I will work on it in a different patch after the three I sent are done.
According to the policy in #1166886: [Policy, no patch] Improve RTL support

All these 7.0 and 8.0 rtl patches need to be committed once and for all, even if only 99% perfect, they are all interdependent and every time one of them gets outdated because another css patch got committed, all or many of them go back to needs work.

That's why I am pushing to get The three RTL patches for the drop button component to be committed. Two are done, and this one is remaining.

LewisNyman’s picture

You're going to have to help me understand what I'm supposed to be testing here. The screenshots in the summary and in comments show the views UI but this patch isn't affecting the views UI?

This is what the content types page looks like for me right now with the patch applied:

alayham’s picture

Hi Lewis. There are many issues with the dropbutton component's display in Seven when using an RTL language. These issues are not related to this patch. all I did here is fix some border and border-radius css values to get it to display correctly without hover. I will work on the hover and the positioning, as well as some css overlay issues in some situation one by one, and I plan to fix them all.

I believe fixing them all in a single patch can be more difficult to maintain in the future, because if a small fix caused other issues, you can't roll back the patch, you have to fix it with a different fix. This is why I am working on small fixes and getting the display better with each patch.

here is how the dropbutton looks before this patch
Before
and here it is after the patch
after
after

There is some progress here. I fixed the separator and the border radius. That's all this what this patch does.

Do you suggest a single patch for all of the RTL issues of Dropbutton in Seven at once?

alayham’s picture

This patch solves the following issues for the Dropbutton component in Seven:
- The separator border
- Style of the drop button.
- many hover issues
- positioning issues

Status: Needs review » Needs work

The last submitted patch, 12: seven_theme_dropbutton_component_2287781_12.patch, failed testing.

alayham’s picture

This patch solves the following issues for the Dropbutton component in Seven:
- The separator border
- Style of the drop button.
- many hover issues
- positioning issues

LewisNyman’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 14: seven_theme_dropbutton_component_2287781_14.patch, failed testing.

alayham’s picture

I have no idea why this patch is failing the test. Any help?

$ git reset --hard
HEAD is now at 4a13614 Issue #2039449 by joshi.rohit100, joachim, lokapujya, Jalandhar, paulh, yaworsk: Fix docs for assertField methods in WebTestBase to describe how to skip value checking

$ git apply seven_theme_dropbutton_component_2287781_14.patch

$ git status
# On branch 8.x
#       modified:   core/themes/seven/css/components/dropbutton.component.css
$
LewisNyman’s picture

If that's the latest commit in your repo then it looks like you might be almost a month behind HEAD. I would commit it the patch and attempt a rebase https://www.drupal.org/patch/reroll

alayham’s picture

Title: Seven Theme DropButton component does not look well in RTL pages » DropButton component does not look well in RTL page
Status: Needs work » Needs review
FileSize
3.64 KB

Here are the fixes again.

I hope this will work before another css restructuring gets committed. I am having the difficulties mentioned in #1166886: [Policy, no patch] Improve RTL support

herom’s picture

herom’s picture

I fixed a border issue, and updated the issue summary with new screenshots.

LewisNyman’s picture

Status: Needs review » Needs work
FileSize
18.96 KB

For some reason the primary dropdown on the content creation screen looks like this for me:

It seems to fix if I change those 20em border radius values to 1em but I'm guessing that breaks somewhere else? I think we maybe be in CSS Specificity hell...

herom’s picture

Status: Needs work » Needs review
FileSize
709 bytes
6.77 KB
3.84 KB

aah, that should be fixed now. thanks for noticing.

alayham’s picture

Status: Needs review » Reviewed & tested by the community

Works fine and solves the problem, thank you very much.

LewisNyman’s picture

RTBC++

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed ced85d1 and pushed to 8.x. Thanks!

  • alexpott committed ced85d1 on 8.0.x
    Issue #2287781 by alayham, herom: Fixed DropButton component does not...

Status: Fixed » Closed (fixed)

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