-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[Fab] Rename round -> circular for consistency #21903
Conversation
@kodai3 Thanks for working on it, the latest discussion we had on the topic with @mbrookes is #18116 (comment). A benchmark:
If we look at the semantic of circle vs round:
I would vote for Also, check how we should harmonize |
I totally agree with you. |
i would do for the former too👍 |
Cool, let's wait to get more feedback before moving in any direction. |
A Fab or Button as a noun would be described by the adjective "round" (or "circular"), "rounded", "rectangular", "square"* etc. A square button. A circle is round (or circular), but a round button isn't a circle. (Perhaps, if it has an outline; but it still sounds odd to say "a circle button". That said, we've allowed "rect", "rectangle" and "circle", so if the vote is for consistency over correctness, in order to minimise breaking changes, I'm not going to argue. *"Square" is a bit of an anomaly here, as the noun and adjective are the same word. |
I like the idea to use the adjective over the noun, it seems more consistent and accurate. |
So? - Pagination (& Item): `shape: PropTypes.oneOf(['round', 'rounded']),`
- Fab: `variant: PropTypes.oneOf(['extended', 'round']),`
- Avatar: `variant: PropTypes.oneOf(['circle', 'rounded', 'square']),`
- Badge: `overlap: PropTypes.oneOf(['circle', 'rectangle']),`
- Skeleton: `variant: PropTypes.oneOf(['circle', 'rect', 'text']),`
+ Pagination (& Item): `shape: PropTypes.oneOf(['circular', 'rounded']),`
+ Fab: `variant: PropTypes.oneOf(['extended', 'circular']),`
+ Avatar: `variant: PropTypes.oneOf(['circular', 'rounded', 'square']),`
+ Badge: `overlap: PropTypes.oneOf(['circular', 'rectangular']),`
+ Skeleton: `variant: PropTypes.oneOf(['circular', 'rectangular', 'text']),` |
@oliviertassinari Do you think it is ok to step forward with #21903 (comment) ? or maybe should we create a dedicated issue to get more feedback? |
I think that we should wait @mbrookes feedback first. It's not a small change. |
The API LGTM, but I agree it would be good to get broader support for this change before diving into a PR. @kodai3 do you want to create an RFC issue? |
@oliviertassinari @mbrookes created the issue. |
@oliviertassinari @mbrookes changed to circular, should be ready for review |
a809b7b
to
f9615a8
Compare
Breaking change
Rename
round
tocircular
for consistency. The possible values should be adjectives, not nouns:I have followed (at least) the PR section of the contributing guide.
I thought we should do the same on
Pagination
andPaginationItem
Part of #21964