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

Image: Inconsistent prop usage between Image and Icon for circular shape #2217

Closed
zxlin opened this issue Oct 19, 2017 · 5 comments
Closed

Comments

@zxlin
Copy link

zxlin commented Oct 19, 2017

Steps

Currently to create a circular image and a circular icon, we would do the following:

<Image shape='circular' src='url' />

<Icon circular name='icon' />

but that's really inconsistent, especially where Image and Icon can be used interchangeably such as in Header

Expected Result

Ideally, both Image and Icon would use bool props for adjective based attributes as it is the case with many other attributes like disabled, bordered, etc...

<Image circular src='url' />

<Icon circular name='icon' />

Version

0.75.1

Please let me know if there is a reason to keep it the way it is.

@zxlin zxlin changed the title Inconsistent prop usage between Image and Icon for circular shape Image: Inconsistent prop usage between Image and Icon for circular shape Oct 19, 2017
@layershifter
Copy link
Member

Image supports also rounded shape, that's why we have rounded prop. I think that the better solution will replace circular prop with shape. @levithomason what you think?

@zxlin
Copy link
Author

zxlin commented Oct 19, 2017

That's fine too, there just needs to be some consistency with this.

@layershifter
Copy link
Member

@zxlin feel free to open PR 👍

@levithomason
Copy link
Member

Yes on consistency. The shape grouping is the odd ball here:

<Buton circular />
<Label circular />
<Segment circular />
<Icon circular />

Let's fix the Image to be consistent.

@RetroCraft
Copy link
Contributor

I think this is what @levithomason was getting at, please review and let me know if there's anything wrong.

I'm pretty new to this whole open source thing.

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

No branches or pull requests

4 participants