Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The design of Seven's drop button widget does not look good in RTL languages.
Before patch
After patch
Comment | File | Size | Author |
---|---|---|---|
#23 | dropbutton_rtl_fixes-2287781-23.patch | 3.84 KB | herom |
#23 | dropbutton-fix-border-radius-rtl.png | 6.77 KB | herom |
#23 | interdiff-2287781-20-23.txt | 709 bytes | herom |
#22 | Screenshot 2014-07-29 16.50.35.jpg | 18.96 KB | LewisNyman |
#20 | dropbutton_rtl_fixes-2287781-20.patch | 3.84 KB | herom |
Comments
Comment #1
alayham CreditAttribution: alayham commentedThis 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
Comment #2
dawehnerMuch better
Comment #3
alexpottWe need to add
/* LTR */
to the corresponding ltr css rulesComment #4
LewisNymanWe 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?
Comment #5
alayham CreditAttribution: alayham commentedThanks for the corrections. Here is the patch again, with a shot of the content types page.
Comment #6
alayham CreditAttribution: alayham commentedThis is related to #2287381: views_ui dropbuttons display is not RTL friendly and should be committed as well to fix the issue.
Comment #7
webchickPlease don't RTBC your own patch. Sounds like Lewis was asking for some screenshots.
Comment #8
LewisNymanAh sorry I forgot to review this. I noticed this behaviour on hover:
Comment #9
alayham CreditAttribution: alayham commentedLewis, 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
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.
Comment #10
LewisNymanYou'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:
Comment #11
alayham CreditAttribution: alayham commentedHi 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
and here it is after the patch
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?
Comment #12
alayham CreditAttribution: alayham commentedThis patch solves the following issues for the Dropbutton component in Seven:
- The separator border
- Style of the drop button.
- many hover issues
- positioning issues
Comment #14
alayham CreditAttribution: alayham commentedThis patch solves the following issues for the Dropbutton component in Seven:
- The separator border
- Style of the drop button.
- many hover issues
- positioning issues
Comment #15
LewisNymanComment #17
alayham CreditAttribution: alayham commentedI have no idea why this patch is failing the test. Any help?
Comment #18
LewisNymanIf 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
Comment #19
alayham CreditAttribution: alayham commentedHere 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
Comment #20
herom CreditAttribution: herom commentedComment #21
herom CreditAttribution: herom commentedI fixed a border issue, and updated the issue summary with new screenshots.
Comment #22
LewisNymanFor 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...
Comment #23
herom CreditAttribution: herom commentedaah, that should be fixed now. thanks for noticing.
Comment #24
alayham CreditAttribution: alayham commentedWorks fine and solves the problem, thank you very much.
Comment #25
LewisNymanRTBC++
Comment #26
alexpottCommitted ced85d1 and pushed to 8.x. Thanks!