-
Notifications
You must be signed in to change notification settings - Fork 26
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
Self contained styles (+pptr) #387
Conversation
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.
💯
materials/internals/reset.mod.css
Outdated
@@ -9,24 +9,9 @@ | |||
html, | |||
body { | |||
color: var(--color-black); | |||
font-family: 'Open Sans', sans-serif; | |||
font-size: 13px; |
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.
Unrelated but should we consider using rem
for sizes instead of hard-coded pixels?
@@ -186,6 +186,7 @@ | |||
"postcss-preset-env": "6.5.0", | |||
"postcss-reporter": "6.0.0", | |||
"postcss-safe-parser": "4.0.1", | |||
"pptr-testing-library": "0.3.1", |
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.
Nice 🎉
await expect(page).toMatch('A label text'); | ||
const doc = await getDocument(page); | ||
const button = await getByLabelText(doc, 'A label text'); | ||
expect(button).toBeTruthy(); |
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.
feels a bit more like our style of testing 😆
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.
Nice.
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.
pptr 🔥
playground/src/playground.css
Outdated
body { | ||
margin: 0; | ||
padding: 0; | ||
height: 100vh; |
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.
Is this height: 100vh
needed? As far as I remember it is something the MC needs which somehow ended up in ui-kit, but our playground should not need it.
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.
not sure, I just added it so it looked the same as before 🤷♂️
Going to do more encapsulate in this PR since I'm on a roll. |
@@ -1,6 +1,5 @@ | |||
/* This is the entry point of the public package interface */ | |||
|
|||
import '../materials/internals/reset.mod.css'; |
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.
Can you elaborate how we can be sure that no app-code implicitly depends on these?
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.
because both of those files are duplicated in the app shell and are imported there
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.
😄
Okay this is ready for review again 🗡 |
169aa14
to
b8e77f8
Compare
Summary