-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Checkbox problem in RTL on scrolling page #1062
Comments
I just took a quick look at that issue. At first I came up with a solution like /**
* Temporary mixin to detect whether the current selector is inside of an RTL direction.
* This can be removed in the future when a service takes control over the RTL detection.
*/
@mixin if-rtl() {
[style*="direction:rtl"] &, [dir='rtl'] & {
@content;
}
} But that approach only works for the inline style of I think now would be a good point to consider creating the RTL service, which detects RTL from the There must be some discussion about that, since But the correct approach would be definitely using the I thought about a directive, which will be applied to the components root element, and then toggles a class for RTL when the upper direction changed. |
I found a solution, parent scroll container must set force overflow in css:
|
Hi @mbnsoft . see - example @EladBezalel |
@eladh Thanks ! |
Hi @eladh |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
RTL direction in css as below:
If vertical scrollbar visible on the page, checkbox border move to left:
I have this problem with dir attribute on html tag also, thanks in advance.
The text was updated successfully, but these errors were encountered: