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

Add basic page layout with EUI #277

Merged
merged 2 commits into from
Mar 21, 2023
Merged

Conversation

jonathonherbert
Copy link
Contributor

@jonathonherbert jonathonherbert commented Mar 20, 2023

What does this change?

Adds a basic page layout with EUI. Behold:

Screenshot 2023-03-20 at 17 31 47

Dev notes

Behold, but less triumphantly (this is a production build running in CODE):

Screenshot 2023-03-20 at 17 59 44

... that'll be the next PR 😅. Other tools that use EUI in production come in at about 500kb, so this is likely a problem with our build. Build times are also appalling – I suspect a move to Vite may kill both birds with one stone.

Other notes: I've added a basic CSS reset, taking a few things from here. There's also a CSS override to ensure that our headings are Guardian-specific. I thought this was more elegant than custom heading components for each heading level, but we could move this to heading components if others felt strongly.

How to test

Run locally, or in CODE, remembering to run npm i within rule-manager-client to refresh dependencies – @guardian/source is out, @elastic/eui is in.

@jonathonherbert jonathonherbert requested a review from a team as a code owner March 20, 2023 18:05
Copy link
Contributor

@phillipbarron phillipbarron left a comment

Choose a reason for hiding this comment

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

Looks great, Jon. Is Elastic UI the library that's preventing us using React 18?

@jonathonherbert
Copy link
Contributor Author

That's right, elastic/eui#6182 is tracking that issue. The list of issues is small, so hopefully it's not too far off!

@jonathonherbert jonathonherbert merged commit 8a0de34 into main Mar 21, 2023
@jonathonherbert jonathonherbert deleted the jsh/add-page-layout-to-manager branch March 21, 2023 08:43
@jonathonherbert jonathonherbert mentioned this pull request Mar 21, 2023
1 task
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

Successfully merging this pull request may close these issues.

3 participants