-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update Popup layout and props #271
Conversation
Fix typo variable name Update Popup doc stories
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.
Netlify 讚讚
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.
<Popup>
的測試看起來沒有測到新引入的 props
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 update 🚀
…ure/update-popup-ui
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.
LGTM
記得把 JSX 縮排改回來
Purpose
調整
<Popup>
樣式,並新增<Popup>
預設 layout新的基本用法可以在下面 preview 的 basic usage 看到
預設的 layout 應該已經能夠符合大多數情境
目前也支援原本 message 的 prop (雖然內部的結構變了,因為想要統一調整樣式)
如果對於 props 的調整有什麼想法,請告訴我 謝謝!
Preview: https://deploy-preview-271--gypcrete.netlify.app/?path=/story/ichef-gypcrete-popup--basic-usage
Add props for default Popup message layout
messageTitle
messageDesc
messageBottomArea
Add
customMessageNode
prop just in case that you want to render custom content.message
prop will be deprecated in the futureUpdate Popup styles
Fix typo variable name
Update Popup doc stories
Changes
Risk
<Popup>
internal DOM structure