-
Notifications
You must be signed in to change notification settings - Fork 4.2k
fix: Remove horizontal scroll on instructor page in RTL version #36335
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
fix: Remove horizontal scroll on instructor page in RTL version #36335
Conversation
|
Thanks for the pull request, @Lunyachek! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. Where can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
b307741 to
a7d40a4
Compare
a7d40a4 to
3f7e519
Compare
3f7e519 to
dff2031
Compare
dff2031 to
f169e1a
Compare
|
Hi @brian-smith-tcril this is one of our top 10 oldest PRs. Do you think you could fit it into your review queue? |
f169e1a to
e0fb810
Compare
OmarIthawi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Lunyachek
I've just found this PR in an email.
First, it's better than before and I recommend merging it after someone else builds it locally and verify it's not broking other things.
I have done a lot of RTL fixes and the code sounds like a good one. Many thanks for addressing this issue. So I recommend merging it after a second review.
I've left few notes and comments, please check them and let me know what do you think.
I can't test locally as it'll take me a couple of hours to refresh my dev environment.
|
|
||
| @include left(-9999em); | ||
|
|
||
| left: -9999em; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgive my late question, why not display: none?
left: -9999em; seems like a bad way to hide an element and could cause other sort of nasty bugs.
Check the todo below:
/* ***
* Ideally we want to handle functionality with JS.
* This functionality should eventually be moved into CS/JS, and out of here. */
.has-hint:hover > .hint {
@include left($baseline*10);
}
If we're hardcoding left here. How it would play with @include left($baseline*10);?
In its current form it looks a bit oddly placed in Arabic, what's the placement in English look like in a screenshot?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @OmarIthawi! I have no objections - changed to display none
dbbb205 to
0f56eab
Compare
| } | ||
|
|
||
| .has-hint:hover > .hint, | ||
| .has-hint input:focus ~ .hint { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need display block here, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Lunyachek can you address this comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@OmarIthawi Yes, you’re absolutely right. I’ve added display: block
|
@Lunyachek - just checking to see if this is still in progress? |
f151f48 to
ee94049
Compare
OmarIthawi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @Lunyachek. It's been a huge while. Please squash so @sarina or someone else can merge.
|
@arbrandes or @brian-smith-tcril could you give this a once-over? |
|
Sandbox deployment failed 💥 |
|
Sandbox deployment successful 🚀 |
brian-smith-tcril
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I'm curious about the choice to not use display: none in the first place, but I'm glad to see it cleaned up.
I had a bit of trouble testing RTL on the sandbox (some pages seemed to fully display as RTL, and the html showed dir="rtl" but not everything appeared as RTL), so I can't fully confirm the fix, but everything seems to work as expected in LTR and the code looks great!
ee94049 to
139f5f7
Compare
|
Sandbox deployment failed 💥 |
|
Sandbox deployment successful 🚀 |

Description
Previously, the mixin
@include left(-9999em);was used to setleft: -9999emorright: -9999emdepending on the text direction (LTR/RTL). However, usingright: -9999emin RTL mode caused the body to expand, leading to an unwanted horizontal scroll.This PR replaces the mixin with a fixed
left: -9999emfor both LTR and RTL, ensuring elements are correctly hidden without affecting the page width.Additionally,
z-index: 1has been added to ensure that hint tooltips appear above their parent label elements2025-03-06.14.52.10.mov
Changes
@include left(-9999em);withleft: -9999emfor both LTR and RTL.right: -9999emto prevent horizontal scrolling issues.z-index: 1to ensure hint tooltips are displayed above their parent label elements.Reason for Changes
right: -9999emin RTL mode caused the body to expand, resulting in an unnecessary horizontal scroll. Settingleft: -9999emensures proper element hiding without side effects.labelelements. Addingz-index: 1ensures they appear on topTesting