Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

fix(chips): Flip leading icon margin when used in RTL contexts (#4379) #4380

Merged
merged 4 commits into from
Feb 8, 2019

Conversation

WillsB3
Copy link
Contributor

@WillsB3 WillsB3 commented Feb 8, 2019

This fixes the margin of leading icons inside Chips from being applied to the incorrect side of the icon when the Chip appears in a page with RTL writing mode.

Fixes #4379.

…ial-components#4379)

This fixes the margin of leading icons inside Chips from being applied to the incorrect side of the icon when the Chip appears in a page with RTL writing mode.
This change corrects linting issues introduced in c83766
@kfranqueiro
Copy link
Contributor

Nice catch and thanks for the PR! This is also reproducible with our screenshot test pages in RTL mode (which our screenshot test pages support, but we don't capture yet due to how much time it would add to test runs).

Before fix:

image

After fix:

image

@kfranqueiro kfranqueiro merged commit ea15b2f into material-components:master Feb 8, 2019
@WillsB3 WillsB3 deleted the fix/chips/icons-rtl branch February 9, 2019 14:47
jgroth pushed a commit to Lundalogik/material-components-web that referenced this pull request Mar 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MDC Chips: leading icons not spaced correctly for RTL
3 participants