Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

fix(icon): update size values in Icon #640

Merged
merged 7 commits into from
Dec 21, 2018
Merged

Conversation

codepretty
Copy link
Collaborator

@codepretty codepretty commented Dec 18, 2018

BREAKING CHANGE

We want the size of components across Stardust to be consistent. The sizing scheme we decided to go with for now is: smallest, smaller, small, medium, large, larger, largest. This PR is to update the sizes for an Icon to match this scheme. This reduces the number of available values for Icon sizes from 9 to 7 sizes.

This doesn't change the Icon api, but it modifies the allowed values for the size prop on Icon. Whereas before, you could use values like tiny this will no longer produce a smaller than default icon.

<Icon name="home" size="tiny" />

The above example will still render, but as the medium (default) size. To achieve the same look, you will need to update the size prop value to be one of the allowed values.

<Icon name="home" size="smaller" />

@kuzhelov kuzhelov changed the title bug(icon): update size values in Icon feat(icon): update size values in Icon Dec 19, 2018
@codepretty codepretty changed the title feat(icon): update size values in Icon BREAKING(icon): update size values in Icon Dec 19, 2018
@codepretty codepretty changed the title BREAKING(icon): update size values in Icon fix(icon): update size values in Icon Dec 20, 2018
@layershifter layershifter merged commit 1d0483b into master Dec 21, 2018
@layershifter layershifter deleted the bug/normalize-sizes branch December 21, 2018 10:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants