-
Notifications
You must be signed in to change notification settings - Fork 683
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
[PWA-156] Added Drawer Footer Styleguide. #2093
Conversation
…anth/footer-styleguide
|
Approved, but blocked by preceding PRs: |
1275e9b
to
c037f63
Compare
@revanth0212 @jimbo I've just had a look at the implementation. A few questions:
|
As far as I remember, this is intentional. I can revert it if that's not expected.
If we need a vertical example, I can add it to the styleguide. @jimbo what do you think?
Can it not be a case where 2 buttons will definitely not be primary? As an example, next and back both can be secondary.
Not sure of this. |
Yes. Drawers (and footers) have a white background.
Yes, there are a maximum of two buttons, vertically and horizontally centered in a single row. There is not an example of vertically stacked buttons in a footer, because a footer has a single row.
@soumya-ashok Agreed, examples should show one high and one low priority button, since that's the typical case. @revanth0212 You're correct, it could potentially be two low priority buttons, but that would be unusual.
In this case, there are no breakpoints, since a drawer's width (and thus the footer's width) matches our smallest breakpoint. |
@revanth0212 and @jimbo Thanks for clarifying. We don't need vertically stacked buttons, I meant center-aligned along the height. |
You are right here. But consider this scenario, the Drawer Footer is just 1 component in a page and sometimes it may not have a primary action but the page housing the drawer footer might have. In such situations, having 2 secondary buttons it is a valid use case. |
We can merge this PR for now and circle back later to discuss the missing use cases once we have a matured style guide. |
Description
Drawer Footer Styleguide.
Related Issue
Closes PWA-156
Verification Stakeholders
@jimbo @soumya-ashok @jcalcaben
Verification Steps
yarn workspace @magento/venia-styleguide run start
/page/drawer-footer
Screenshots
Checklist