-
Notifications
You must be signed in to change notification settings - Fork 156
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
[v1] feat(rtl-arrow): Fix arrows used for CTA's when in RTL #11748
[v1] feat(rtl-arrow): Fix arrows used for CTA's when in RTL #11748
Conversation
Deploy preview created for package Built with commit: af658f4eeaf2b2f8874601c94b24661252580e86 |
Deploy preview created for package Built with commit: a9b4f3d314da9fac1bf0d95fdef221fc56121fc1 |
Deploy preview created for package Built with commit: a9b4f3d314da9fac1bf0d95fdef221fc56121fc1 |
Deploy preview created for package Built with commit: a9b4f3d314da9fac1bf0d95fdef221fc56121fc1 |
Deploy preview created for package Built with commit: a9b4f3d314da9fac1bf0d95fdef221fc56121fc1 |
Deploy preview created for package Built with commit: a9b4f3d314da9fac1bf0d95fdef221fc56121fc1 |
Deploy preview created for package Built with commit: a9b4f3d314da9fac1bf0d95fdef221fc56121fc1 |
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!
Deploy preview created for package Built with commit: a9b4f3d314da9fac1bf0d95fdef221fc56121fc1 |
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
@andy-blum I think the jobs that are supposed to be passing are all good now? The |
Related Ticket(s)
Closes #11725
Jira Ticket
Description
Checks
document.dir
and uses the appropriate arrow icon for the text direction (right in LTR and left in RTL). For many stories involving CTA's, CTA derivatives, or buttons, avoid using the slotted icon when all we're going for iscta-type="local"
, in other words the arrow icon. In non-CTA cases, there isn't support for a default arrow icon, so we adjust stories to slot the right icon base ondocument.dir
.Note that in v1, only 'CTA' components have the
CTAMixin
, whereas it's more broadly used in v2. This means that for non-CTA components its up to the client to slot the right arrow icon (as evidenced by the many*.stories.ts
changes). This isn't great, but it felt OK for now 🤷 . Open to ideas however.Testing instructions
Changelog
Changed