Skip to content
Snippets Groups Projects
Commit ced85d10 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2287781 by alayham, herom: Fixed DropButton component does not look well in RTL page.

parent 9e6dd21c
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -39,10 +39,16 @@ ...@@ -39,10 +39,16 @@
display: block; display: block;
min-height: 2em; min-height: 2em;
position: relative; position: relative;
padding-right: 10em; padding-right: 10em; /* LTR */
margin-right: 2em; margin-right: 2em; /* LTR */
max-width: 100%; max-width: 100%;
} }
[dir="rtl"].js td .dropbutton-multiple {
padding-right: 0;
margin-right: 0;
padding-left: 10em;
margin-left: 2em;
}
.js td .dropbutton-multiple .dropbutton-action a, .js td .dropbutton-multiple .dropbutton-action a,
.js td .dropbutton-multiple .dropbutton-action input, .js td .dropbutton-multiple .dropbutton-action input,
.js td .dropbutton-multiple .dropbutton-action button { .js td .dropbutton-multiple .dropbutton-action button {
......
...@@ -32,7 +32,10 @@ ...@@ -32,7 +32,10 @@
box-shadow: none; box-shadow: none;
} }
.dropbutton-multiple .dropbutton { .dropbutton-multiple .dropbutton {
border-right: 0; border-right: 0; /* LTR */
}
[dir="rtl"] .dropbutton-multiple .dropbutton {
border-left: 0;
} }
/** /**
...@@ -54,11 +57,16 @@ ...@@ -54,11 +57,16 @@
.js .dropbutton-widget .dropbutton-action a, .js .dropbutton-widget .dropbutton-action a,
.js .dropbutton-widget .dropbutton-action input, .js .dropbutton-widget .dropbutton-action input,
.js .dropbutton-widget .dropbutton-action button { .js .dropbutton-widget .dropbutton-action button {
border-radius: 20em 0 0 20em; border-radius: 20em 0 0 20em; /* LTR */
padding: 4px 1.5em; padding: 4px 1.5em;
display: block; display: block;
width: 100%; width: 100%;
} }
[dir="rtl"].js .dropbutton-widget .dropbutton-action a,
[dir="rtl"].js .dropbutton-widget .dropbutton-action input,
[dir="rtl"].js .dropbutton-widget .dropbutton-action button {
border-radius: 0 20em 20em 0;
}
.js .dropbutton-widget .dropbutton-action a:focus, .js .dropbutton-widget .dropbutton-action a:focus,
.js .dropbutton-widget .dropbutton-action input:focus, .js .dropbutton-widget .dropbutton-action input:focus,
.js .dropbutton-widget .dropbutton-action button:focus { .js .dropbutton-widget .dropbutton-action button:focus {
...@@ -70,11 +78,19 @@ ...@@ -70,11 +78,19 @@
} }
.js .dropbutton-multiple.open .dropbutton-action:first-child a, .js .dropbutton-multiple.open .dropbutton-action:first-child a,
.js .dropbutton-multiple.open .dropbutton-action:first-child .button { .js .dropbutton-multiple.open .dropbutton-action:first-child .button {
border-radius: 0.9em 0 0 0; border-radius: 0.9em 0 0 0; /* LTR */
}
[dir="rtl"].js .dropbutton-multiple.open .dropbutton-action:first-child a,
[dir="rtl"].js .dropbutton-multiple.open .dropbutton-action:first-child .button {
border-radius: 0 0.9em 0 0;
} }
.js .dropbutton-multiple.open .dropbutton-action:last-child a, .js .dropbutton-multiple.open .dropbutton-action:last-child a,
.js .dropbutton-multiple.open .dropbutton-action:last-child .button { .js .dropbutton-multiple.open .dropbutton-action:last-child .button {
border-radius: 0 0 0 0.9em; border-radius: 0 0 0 0.9em; /* LTR */
}
[dir="rtl"].js .dropbutton-multiple.open .dropbutton-action:last-child a,
[dir="rtl"].js .dropbutton-multiple.open .dropbutton-action:last-child .button {
border-radius: 0 0 0.9em 0;
} }
.js .dropbutton-wrapper .dropbutton-widget .dropbutton-action a:hover, .js .dropbutton-wrapper .dropbutton-widget .dropbutton-action a:hover,
.js .dropbutton-wrapper .dropbutton-widget .dropbutton-action button:hover, .js .dropbutton-wrapper .dropbutton-widget .dropbutton-action button:hover,
...@@ -164,14 +180,24 @@ ...@@ -164,14 +180,24 @@
* The dropdown trigger. * The dropdown trigger.
*/ */
.js .dropbutton-wrapper .dropbutton-widget .dropbutton-toggle button { .js .dropbutton-wrapper .dropbutton-widget .dropbutton-toggle button {
border-left: 1px solid #a6a6a6; border-left: 1px solid #a6a6a6; /* LTR */
outline: none; outline: none;
} }
[dir="rtl"].js .dropbutton-wrapper .dropbutton-widget .dropbutton-toggle button {
border-right: 1px solid #a6a6a6;
border-left: 0;
}
.js .dropbutton-wrapper .dropbutton-widget .dropbutton-toggle button { .js .dropbutton-wrapper .dropbutton-widget .dropbutton-toggle button {
border-radius: 0 20em 20em 0; border-radius: 0 20em 20em 0; /* LTR */
}
[dir="rtl"].js .dropbutton-wrapper .dropbutton-widget .dropbutton-toggle button {
border-radius: 20em 0 0 20em;
} }
.dropbutton-multiple.open .dropbutton-widget .dropbutton-toggle button { .dropbutton-multiple.open .dropbutton-widget .dropbutton-toggle button {
border-radius: 0 1em 1em 0; border-radius: 0 1em 1em 0; /* LTR */
}
[dir="rtl"] .dropbutton-multiple.open .dropbutton-widget .dropbutton-toggle button {
border-radius: 1em 0 0 1em;
} }
.js .dropbutton-wrapper .dropbutton-widget .dropbutton-toggle button:hover, .js .dropbutton-wrapper .dropbutton-widget .dropbutton-toggle button:hover,
.js .dropbutton-wrapper .dropbutton-widget .dropbutton-toggle button:focus { .js .dropbutton-wrapper .dropbutton-widget .dropbutton-toggle button:focus {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment