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
[Divider] Add text in divider #22285
Conversation
@oliviertassinari This PR Closes issue # 21820. If you think this is a big PR, then Let me know I will try to divide it into small PRs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like the approach of just using children instead of a property on the Divider
👍
}), | ||
); | ||
|
||
export default function TextDividers() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great start with this new demo. However, I think that we should aim to further simplify it. What about:
- We break the vertical and horizontal cases in two different demos
- We remove the header with "Toothbrush"
- We use the same lorem ipsum text between all the cases, stored inside a string variable. This should allow us to get an inline preview that displays the source automatically behind the demo if there are less than 15 LOCs in the
render ()
part.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have applied the changes. Kindly check this commit.
cb0a6e3
to
11e6cea
Compare
@material-ui/core: parsed: +0.29% , gzip: +0.26% |
994d04e
to
9677918
Compare
9677918
to
2d310b1
Compare
2d310b1
to
56e85c4
Compare
Ok
…On Wed, Aug 26, 2020, 1:01 AM Marija Najdova ***@***.***> wrote:
I would prefer children as that is the property that we are actually
using.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22285 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI24KI7WVMCOFXSW6N6BNZLSCQKCZANCNFSM4QFJJ4GA>
.
|
@shehryarshoukat96 left suggestions that in my opinion would best match the usage of the classes. |
Co-authored-by: Marija Najdova <mnajdova@gmail.com>
Co-authored-by: Marija Najdova <mnajdova@gmail.com>
…arShoukat96/material-ui into 21820-text-inside-divider
Thanks again for the contribution @shehryarshoukat96 🙏 |
This PR adds a feature to add text in Divider
Closes #21820