-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Sharing: Update to FoldableCard Pattern #1474
Conversation
The borderless buttons look just fine to me. Do you think it would be possible (later on, different PR) to switch to foldable card for these? |
@rickybanister Yep, that was going to be my next step. Do we even need them foldable if there's no connection? The preview screenshots don't seem to add much. |
What is the reasoning behind the change? |
We are planning on updating the page to use more components, such as the foldable card. The preview screenshots are important in that they tell a new user what they can get out of connecting without sending them to a support doc. |
@kellychoffman Updated to remove the icon: |
@kellychoffman would it be inappropriate for it to be red? Is disconnecting a sharing service a 'scary' thing? It would then be inline with many other 'remove' and 'delete' items. |
@@ -1,12 +1,15 @@ | |||
/** | |||
* External dependencies | |||
*/ | |||
var React = require( 'react' ); | |||
import React from "react"; |
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.
Single quotes please. :)
3bf37e3
to
df52009
Compare
The above changes would work well also on #1477 |
This isn't my game, but icon-less is better. Ironically we're nearly back to what it was before. Just with the new foldable card style. |
@alternatekev is the mock here just a visual mockup or was it a screenshot? The alignment of the icons is inconsistent. Otherwise I don't have a dog in the icon/iconless fight. |
I like the compact buttons since they weight less in a page otherwise full of buttons. |
@rralian This was a screenshot, and you're right about the icon alignment. It was looking super weird to me too, which should probably be its own PR/issue. |
Yeah, I got myself to a place where I didn't think the borderless was working here in practice. To be fair, we're using the compact buttons which I think make a ton of difference, especially when taking into account the foldable card updates. It feels correct to me, which isn't to say it 100% is. |
@kellychoffman what do you think about moving eventbrite up to the main area and treating it the same? does it need to be in its own group down there: |
I was out for the past two days... Catching up.
I like that we are back to the buttons, but I'm not convinced compact is better than the original buttons. For a new user, Connecting is the primary (only) action for this page. Also, I agree about the icons - I'm not sure they are adding anything here.
There's going to be other services down there. Also Eventbrite isn't publicizing, so I'd rather not group it up with those services. |
I agree with @kellychoffman -- grouping the services would be pretty confusing for users. There will eventually be other services there too... What Eventbrite does, and how it works is very different from Publicize. I've even advocated for a different tab for it in the past, though I understand why we didn't do that (at least for now). |
4ea5f89
to
2f1ae98
Compare
I think we should keep the white icons with the colored background. The updated colored icons looks too messy. |
Just out of curiosity, why were the icons taken out of the colored backgrounds? It looked more uniform before. |
The icons were changed because there's a new SocialLogo component that includes all of the icons within a roundrect except for Twitter. We could go with all roundrect backgrounds but I need one for Twitter added to the component. |
Could we use the non |
I really wanted to avoid doing custom CSS for all of the logos except one. If almost all have roundrect versions, it shouldn't be too hard to add just one. Also it makes the alignment of the logo easier because it's being done in SVG vs aligning it around in CSS. |
Fair. I think we should avoid making updates to the social icons until we have either all roundrect or all standalone. |
By adding a roundrect version of Twitter (which I'm just about done with), then this page will have all roundrect. Except Google+ which will be a circle and Eventbrite which will have its off-kilter rectangle. Would that work? |
That works for me. I'm not opposed to including a version of the Twitter logo with a rectangle in Social Logos. |
@kellychoffman I totally misread this as you wanting to use ALL roundrects. This is currently what this PR does, except for LinkedIn, which also is only in a roundrect format. Using all non-roundrect except for LinkedIn and Facebook is what this PR does now. I've already got the SocialLogos component updated with a pending PR to add the Twitter roundrect... we could see how that version stacks up against what's in the screenshot at the top and go from there. I always forget about Eventbrite I guess. It seems rounrect-enough to me? |
Right, but not with colored backgrounds as it was before.
Yeah I think its fine on its own. |
a11998d
to
e142967
Compare
moved sharing.scss to my-sites/sharing/style and updated imports removing icon made buttons small and added icons cleaned up page w/r/t foldable-card pattern fixed padding for proper hover fx on cards removed the icons again replacing RemoveButton with Button borderless moved sharing.scss to my-sites/sharing/style and updated imports removing icon made buttons small and added icons fixed padding for proper hover fx on cards removed the icons again
working foldablecard into sharing connections working foldablecard into sharing connections working foldablecard into sharing connections removed extraneous service-logo component i'd started
removed extraneous service logo svgs working foldablecard into sharing connections working foldablecard into sharing connections working foldablecard into sharing connections working foldablecard into sharing connections removed extraneous service-logo component i'd started css updates to clarify interface + removal of subheader updated placeholder/loaders removed extraneous service logo svgs slides action button to the left 8px in response to the new foldable card that's been merged removed conflicting CSS classes formatting fixes
… foldable-card fixed service names on small mobile sizes
…elped mobile issues fixed linting errors replacing RemoveButton with Button borderless moved sharing.scss to my-sites/sharing/style and updated imports removing icon made buttons small and added icons cleaned up page w/r/t foldable-card pattern fixed padding for proper hover fx on cards removed the icons again replacing RemoveButton with Button borderless moved sharing.scss to my-sites/sharing/style and updated imports removing icon made buttons small and added icons fixed padding for proper hover fx on cards removed the icons again working foldablecard into sharing connections working foldablecard into sharing connections working foldablecard into sharing connections working foldablecard into sharing connections removed extraneous service-logo component i'd started css updates to clarify interface + removal of subheader updated placeholder/loaders removed extraneous service logo svgs working foldablecard into sharing connections working foldablecard into sharing connections working foldablecard into sharing connections working foldablecard into sharing connections removed extraneous service-logo component i'd started css updates to clarify interface + removal of subheader updated placeholder/loaders removed extraneous service logo svgs slides action button to the left 8px in response to the new foldable card that's been merged fixed mobile issues, mostly by removing CSS and using compact prop on foldable-card fixed service names on small mobile sizes fixed linting errors
…te retains its off-filter container replacing RemoveButton with Button borderless moved sharing.scss to my-sites/sharing/style and updated imports removing icon made buttons small and added icons cleaned up page w/r/t foldable-card pattern fixed padding for proper hover fx on cards removed the icons again replacing RemoveButton with Button borderless moved sharing.scss to my-sites/sharing/style and updated imports removing icon made buttons small and added icons fixed padding for proper hover fx on cards removed the icons again working foldablecard into sharing connections working foldablecard into sharing connections working foldablecard into sharing connections working foldablecard into sharing connections removed extraneous service-logo component i'd started css updates to clarify interface + removal of subheader removed extraneous service logo svgs working foldablecard into sharing connections working foldablecard into sharing connections working foldablecard into sharing connections working foldablecard into sharing connections removed extraneous service-logo component i'd started css updates to clarify interface + removal of subheader updated placeholder/loaders removed extraneous service logo svgs slides action button to the left 8px in response to the new foldable card that's been merged formatting fixes fixed mobile issues, mostly by removing CSS and using compact prop on foldable-card fixed service names on small mobile sizes fixed linting errors replacing RemoveButton with Button borderless moved sharing.scss to my-sites/sharing/style and updated imports removing icon made buttons small and added icons cleaned up page w/r/t foldable-card pattern fixed padding for proper hover fx on cards removed the icons again replacing RemoveButton with Button borderless moved sharing.scss to my-sites/sharing/style and updated imports removing icon made buttons small and added icons fixed padding for proper hover fx on cards removed the icons again working foldablecard into sharing connections working foldablecard into sharing connections working foldablecard into sharing connections working foldablecard into sharing connections removed extraneous service-logo component i'd started css updates to clarify interface + removal of subheader updated placeholder/loaders removed extraneous service logo svgs working foldablecard into sharing connections working foldablecard into sharing connections working foldablecard into sharing connections working foldablecard into sharing connections removed extraneous service-logo component i'd started css updates to clarify interface + removal of subheader updated placeholder/loaders removed extraneous service logo svgs slides action button to the left 8px in response to the new foldable card that's been merged fixed mobile issues, mostly by removing CSS and using compact prop on foldable-card fixed service names on small mobile sizes fixed linting errors updated logos to roundrect versions, google+ is a circle and eventbrite retains its off-filter container
e142967
to
437a2d1
Compare
Sharing: Update to FoldableCard Pattern
This PR updates Sharing to the
FoldableCard
components. Currently in production, Sharing looks like this:When updating to FoldableCards, this PR looks like this:
This also makes use of the new
SocialLogo
component introduced by @enejb. Since Twitter doesn't have a box-surrounded version of the icon, I went with mostly non-boxed icons here. We can easily change this to include boxed icons for every logo, but it'd require adding one for Twitter to theSocialLogo
component.Pinging @johnHackworth, @rickybanister and @mtias for reviews.