Repository navigation
[EUI+] Add Typography pages - #8432
Conversation
weronikaolejniczak
left a comment
There was a problem hiding this comment.
Awesome work, @acstll! 🎉 I have a couple of blocking things and some questions but overall looks okay! The required changes are super simple.
|
|
||
| <EuiSpacer /> | ||
|
|
||
| :::tip We strongly recommend using relative (`rem` or `em`) units instead of `px` when possible |
There was a problem hiding this comment.
non-blocking question:
Is the change from info to tip on purpose? Both seem fitting so I don't mind either 😄
There was a problem hiding this comment.
yep, I thought people would be more willing to do something if you ask nicely 😛
There was a problem hiding this comment.
You're right and I'm thinking, maybe we'd like to rephrase "strongly recommend". Not something for this PR though 😄
|
|
||
| This utility accepts a single optional parameter for customizing the maximum width of the truncated text. If not passed, it defaults to `max-width: 100%;`. | ||
|
|
||
| Tip: When truncating text, it is recommended to include the full text within an HTML title attribute or by wrapping the element within an EuiToolTip. |
There was a problem hiding this comment.
non-blocking suggestion:
I'm wondering if we could use a tip alert element here?
There was a problem hiding this comment.
would be nice but I'd leave that for M2, wdyt?
There was a problem hiding this comment.
That's totally fine for me, I'm just wondering, isn't it as simple as doing this? 🤔
:::tip
blah blah blah
:::
We can also leave it as it is, up to you! 😄
There was a problem hiding this comment.
I thought so too but the MDX compiler complains (probably because it's inside <Example.Description> and it's a different parsing path?)
💚 Build Succeeded
History
cc @acstll |
weronikaolejniczak
left a comment
There was a problem hiding this comment.
Thanks for the changes, all the links work now! As for the other topics, feel free to introduce the suggestions into the code and give me a ping, or let's just merge this PR and discuss later 😄
I'll probably go for the latter, thanks for the wonderful review! |
Summary
Resolves #8419
This migrates the entire Typography section, not only the dynamic content.
One thing to remark is that the "values", namely Font scale, Font weight and Font settings have been extracted into separate pages. Other than that it should match.
QA
Head to the Typography pages in both the old and the new docs, compare and look for any mistakes: