Due to border radius design in Views UI, Drop Buttons do not appear correctly when using views_ui in an RTL language. See screenshot
Border-radius should be inverted when switching page direction.
Border Radius issue in RTL

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alayham’s picture

Priority: Normal » Minor
Status: Active » Needs review
FileSize
743 bytes

patch to fix dropbutton border-radius in RTL languages

alayham’s picture

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

much better

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/core/modules/views_ui/css/views_ui.admin.theme.css
@@ -1136,6 +1136,12 @@ div.messages {
+[dir="rtl"].js .dropbutton-wrapper.dropbutton-multiple.open .dropbutton-action:first-child a {
+  border-radius: 0 1.1em 0 0;
+}
+[dir="rtl"].js .dropbutton-wrapper.dropbutton-multiple.open .dropbutton-action:last-child a {
+  border-radius: 0 0 1.1em 0;
+}

The corresponding left-to-right css needs a comment. For example:

.js .dropbutton-wrapper.dropbutton-multiple.open .dropbutton-action:first-child a {
  border-radius: 1.1em 0 0 0; /* LTR */
}
.js .dropbutton-wrapper.dropbutton-multiple.open .dropbutton-action:last-child a {
  border-radius: 0 0 0 1.1em; /* LTR */
}
alayham’s picture

Thank you for the corrections. Here is the updated patch

alayham’s picture

Status: Needs work » Needs review
dawehner’s picture

Status: Needs review » Reviewed & tested by the community

alex +1

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 4f8cf70 and pushed to 8.x. Thanks!

  • alexpott committed 4f8cf70 on 8.x
    Issue #2287381 by alayham: Fixed views_ui dropbuttons display is not RTL...

Status: Fixed » Closed (fixed)

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