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
RTL bugs #32327
Comments
I can confirm first bug is fixed (switch circle) |
About the carousel keyboard and touch which currently changes slide in wrong direction in RTL layout, It can be fixed to behave as expected in both RTL and LTR with very little change: Line 37 in be85391
Change to: const ARROW_LEFT_KEY = isRTL ? 'ArrowRight' : 'ArrowLeft' Line 38 in be85391
Change to: const ARROW_RIGHT_KEY = isRTL ? 'ArrowLeft' : 'ArrowRight' These 2 changes fix keyboard direction. Now for fixing touch direction: Line 257 in be85391
Change to: isRTL ? this.next() : this.prev() Line 262 in be85391
Change to isRTL ? this.prev() : this.next() Also make sure to import // /js/src/carousel.js
import {
getjQuery,
onDOMContentLoaded,
TRANSITION_END,
emulateTransitionEnd,
getElementFromSelector,
getTransitionDurationFromElement,
isVisible,
+ isRTL,
reflow,
triggerTransitionEnd,
typeCheckConfig
} from './util/index' |
You can always make PRs @FaridAghili. But most importantly, we need to add JS tests for the changes in the RTL PR as mentioned in #32330. |
Windows 10
Google Chrome 87
a weird bug in
form-switch
:Notice the switch circle which isn't vertically centered.
It only happens in unchecked unfocused state, not when checked or when it has focus.
In this url, please take a look at this:
I guess we should flip this chevrons like this:
Which can be done with
transform: rotate(180deg)
. Also thetransform-origin
can be increased to.6em
to have more space between chevron and text.Carousel direction is wrong in RTL when changed by keyboard or touch, however left/right icons works correct on click See fix
The text was updated successfully, but these errors were encountered: