-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[lab] Create lab package, add SpeedDial #10288
Conversation
docs/scripts/buildApi.js
Outdated
@@ -64,10 +77,6 @@ function buildDocs(options) { | |||
reactAPI.pagesMarkdown = pagesMarkdown; | |||
reactAPI.src = src; | |||
|
|||
// if (reactAPI.name !== 'Backdrop') { |
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.
This comment is very useful for debugging, more than useful.
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.
Comment? Looks like commented out dead code. Perhaps the "comment" needs a comment. 😄
docs/src/modules/utils/helpers.js
Outdated
@@ -21,7 +21,7 @@ export function pageToTitle(page) { | |||
|
|||
const name = page.pathname.replace(/.*\//, ''); | |||
|
|||
if (page.pathname.indexOf('/api') === 0) { | |||
if (page.pathname.indexOf('/api') !== -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.
This is less restrictive, why?
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.
To pick up /lab/api
, but I can make it more verbose.
@@ -32,7 +32,7 @@ to discuss the approach before submitting a PR. | |||
- **[Buttons: Floating Action Button](https://material.io/guidelines/components/buttons-floating-action-button.html) ✓** | |||
- **[Trigger](https://material.io/guidelines/components/buttons-floating-action-button.html#buttons-floating-action-button-transitions) ✓** | |||
- [Toolbar](https://material.io/guidelines/components/buttons-floating-action-button.html#buttons-floating-action-button-transitions) | |||
- [Speed dial](https://material.io/guidelines/components/buttons-floating-action-button.html#buttons-floating-action-button-transitions) | |||
- **[Speed dial](https://material.io/guidelines/components/buttons-floating-action-button.html#buttons-floating-action-button-transitions) ✓** |
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 a component in the lab makes it supported?
It doesn't even mean it will reach core. We might decide to kill one lab component for some reason.
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 a component in the lab makes it supported?
Legacy change - don't forget SpeedDial was written before Lab.
We might decide to kill one lab component for some reason.
Sure. But not this one. 😉
packages/lab/.gitignore
Outdated
@@ -0,0 +1 @@ | |||
../../.gitignore |
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.
Do we need this file?
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.
Apparently not! (Can't repro whatever might have inspired having a package-local .gitignore
before...)
@@ -0,0 +1 @@ | |||
Note: Not active, just a placeholder for the SpeedDial regression test. |
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.
Should the regression tests be shared between different packages?
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.
SpeedDial was originally written to go into material-ui/src, so a regression test was written. Rather than throw that code away, I've put it here. Nothing more, nothing less.
src/styles/zIndex.js
Outdated
modal: 1300, | ||
snackbar: 1400, | ||
tooltip: 1500, | ||
speedDial: 1100, |
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.
This is replicated in the .md, to update.
It's a breaking change and a dangerous one as can have large impact without people noticing.
I'm making the lab/core packages my priority for this weekend. Let's scale :). |
docs/src/modules/utils/find.js
Outdated
@@ -23,7 +23,7 @@ function findPagesMarkdown( | |||
} | |||
let pathname = itemPath.replace(new RegExp(`\\${path.sep}`, 'g'), '/').replace(/^.*\/pages/, '').replace('.md', ''); | |||
|
|||
if (pathname.indexOf('/demos') === 0) { | |||
if (pathname.indexOf('/demos') === 0 || pathname.indexOf('/lab') === 0 || pathname.indexOf('/utils') === 0 ) { |
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 will try to find a better approach than having to explicit the folders that follow a different structure in order to fix #10337.
This reverts commit 6f9eecf.
No description provided.