Skip to content
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(shape): Allow percentage based global overrides #4548

Merged
merged 6 commits into from
Mar 28, 2019

Conversation

abhiomkar
Copy link
Collaborator

@abhiomkar abhiomkar commented Mar 27, 2019

This PR fixes issue with overriding global shape variables with percentage values.

For example, overriding small component shape global variable would apply given radius (i.e., 50%) to all small components (button, textfield, etc.).

$mdc-shape-small-component-radius: 50%;

Whereas, default shape radius value of small component is 4px. Before this change, overriding shape global variables with percentages resulted in compilation error or wouldn't resolve the percentage value from shape literals.

This change fixes it by resolving shape literals (e.g., small) before resolving percentage values.

Refs #4140

@mdc-web-bot
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants