You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When in RTL mode, a drawer set to placement="start" will slide out from the same direction as when in LTR mode. I believe it should slide out from the opposite side.
This was a bit more challenging due to the way animations are defined. Since there's no logical property for translateX, the Animation Registry needed to be refactored to support directionality.
Most of the existing animations don't require a RTL alternative, but customizations could easily require it so I've updated drawer and all other components to support this. I also made dir a required option for getAnimation() to ensure we can't forget it in future animations.
In short, ElementAnimation now supports an optional rtlKeyframes property that will be used when necessary. If rtlKeyframes isn't provided, the registry falls back to keyframes. This allows us to support a simple animation definition for most components, while allowing RTL customizations for those that use CSS properties without logical equivalents.
Describe the bug
When in RTL mode, a drawer set to
placement="start"
will slide out from the same direction as when in LTR mode. I believe it should slide out from the opposite side.To Reproduce
Steps to reproduce the behavior:
Screenshots
Browser / OS
The text was updated successfully, but these errors were encountered: