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

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 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.

4 participants