Skip to content

[EUI+] Add Typography pages - #8432

Merged
acstll merged 3 commits into
elastic:mainfrom
acstll:eui-plus/typography-pages
Mar 14, 2025
Merged

acstll merged 3 commits into
elastic:mainfrom
acstll:eui-plus/typography-pages

Conversation

@acstll

@acstll acstll commented Mar 12, 2025 •

Copy link
Copy Markdown
Contributor

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:

@acstll acstll added skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) New EUI site labels Mar 12, 2025
@acstll
acstll marked this pull request as ready for review March 13, 2025 08:07
@acstll
acstll requested a review from a team as a code owner March 13, 2025 08:07
@acstll acstll self-assigned this Mar 13, 2025
@weronikaolejniczak
weronikaolejniczak self-requested a review March 13, 2025 11:15

@weronikaolejniczak weronikaolejniczak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

non-blocking question:

Is the change from info to tip on purpose? Both seem fitting so I don't mind either 😄

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, I thought people would be more willing to do something if you ask nicely 😛

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

non-blocking suggestion:

I'm wondering if we could use a tip alert element here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be nice but I'd leave that for M2, wdyt?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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! 😄

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought so too but the MDX compiler complains (probably because it's inside <Example.Description> and it's a different parsing path?)

@elasticmachine

Copy link
Copy Markdown
Collaborator

💚 Build Succeeded

History

cc @acstll

@weronikaolejniczak weronikaolejniczak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 😄

@acstll

acstll commented Mar 14, 2025

Copy link
Copy Markdown
Contributor Author

or let's just merge this PR and discuss later 😄

I'll probably go for the latter, thanks for the wonderful review!

@acstll
acstll merged commit 2fa3c14 into elastic:main Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[EUI+] Migrate dynamic content for Typography pages

4 participants