-
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
[DSS-328] Upload Card - Layout Update #1782
Conversation
14e1ed8
to
97fa66c
Compare
docs/lib/sage_rails/app/views/sage_components/_sage_upload_card.html.erb
Outdated
Show resolved
Hide resolved
docs/lib/sage_rails/app/views/sage_components/_sage_upload_card.html.erb
Outdated
Show resolved
Hide resolved
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.
Overall looks good. Left a few comments which do not block approval.
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.
A couple of small non-blocking comments, but really great work here! Thanks so much for the documentation updates and the tests! 👍🏼
|
||
<h4>Actions area</h4> | ||
<p>Use the <code>sage_upload_card_actions</code> slot to replace the default button and display custom components, such as dropdowns.</p> | ||
<p><strong>NOTE:</strong> a file input field and label are <em>included by default in the base component</em>, as seen in the examples above. When applying a custom file input with `sage_upload_card_actions`, set <code>custom_file_input_field</code> to <code>true</code> to remove these defaults.</p> |
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 sage_upload_card_actions be wrapped in <code>
to match the others?
], | ||
file_selected: true, | ||
accepted_file_types: ["image/jpg"], | ||
selection_preview: "https://placekitten.com/360", |
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.
🐈
<h3 class="t-sage-heading-6">Selected Error State</h3> | ||
<h3>Custom content areas</h3> | ||
<h4>Instructions area</h4> | ||
<p>The <code>sage_upload_card_instructions</code> slot provides an area for extended instructions and custom markup.</p> |
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.
Nitpick: extra space between 'for extended'
c85f983
to
39d0349
Compare
b5f45fa
to
d0f2ff2
Compare
b5d7e28
to
fa3b177
Compare
fa3b177
to
3ded589
Compare
3ded589
to
31f5f3d
Compare
31f5f3d
to
fc18490
Compare
…in multiple upload cards
fc18490
to
ad36f96
Compare
Description
Refactors the Upload Card layout to match with new Figma specs. Descriptions have been added to the React stories for more context. New props have been added to the React component to accommodate the refactor and match the Rails version.
Note: Because of one usage within
kp
, theinputProps
prop will remain in React. There is a PR inkp
that will handle updating those versions.Screenshots
Stacked Layout
Testing in
sage-lib
Rails
React
Testing in
kajabi-products
(BREAKING) Refactors the Upload Card layout to match with new Figma specs. Will affect existing instances of the Upload Card component in
kp
that utilize Sage classes for styling.Related
DSS-328