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

fadein loading state for sitetype steps #147

Merged
merged 5 commits into from
Jan 25, 2023

Conversation

abhijitb
Copy link
Contributor

@abhijitb abhijitb commented Jan 5, 2023

No description provided.

@abhijitb abhijitb added the Post Phase 2 Polish Polish PR's for work done in Phase 2 label Jan 5, 2023
@abhijitb
Copy link
Contributor Author

abhijitb commented Jan 6, 2023

screen-capture.webm

<NavCardButton
text={ __( content.buttonText ) }
disabled={ categoriesArray[ 0 ]?.subCategories === null }
/>
Copy link
Contributor

Choose a reason for hiding this comment

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

We could include these tags within the StepStateHandler tag too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we can .. but then the button will also not appear when the page loads .. it will appear after a delay of 500ms ... we will have to take a call on that whether we want to do that with the buttons also

Copy link
Member

Choose a reason for hiding this comment

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

We can ask David but I don't think it's a good idea to move the NavCardButton and the NeedHelpTag into the handler because these are not dependent on the data that is being waited for and hence do not need the delay, if navigation is the concern then let me remind you that the user can always navigate using the header navigation regardless. We also do not want to hide the need help tag incase something breaks and the component does not fade in its children.

@officiallygod
Copy link
Member

Also, made changes to PRESS 2-462 to use an Animate component, please do make the changes accordingly and do provide any feedback or changes that further need to be made.

@abhijitb abhijitb force-pushed the PRESS2-439-loading-state-for-sitetype-steps branch from 81a2c3d to 6c85151 Compare January 17, 2023 11:06
@arunshenoy99 arunshenoy99 merged commit 3ce2f30 into trunk Jan 25, 2023
@arunshenoy99 arunshenoy99 deleted the PRESS2-439-loading-state-for-sitetype-steps branch January 25, 2023 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Post Phase 2 Polish Polish PR's for work done in Phase 2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants