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

Site: (#721) User icon to sticker-circle #724

Merged
merged 3 commits into from
Mar 14, 2018
Merged

Conversation

marcoscv-work
Copy link
Member

No description provided.

@coveralls
Copy link

coveralls commented Mar 13, 2018

Pull Request Test Coverage Report for Build 505

  • 0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.003%) to 81.978%

Totals Coverage Status
Change from base Build 486: -0.003%
Covered Lines: 4588
Relevant Lines: 4852

💛 - Coveralls

@carloslancha
Copy link
Contributor

@pat270 could you please take a look at this? Thx!

@pat270
Copy link
Member

pat270 commented Mar 13, 2018

Hey Guys,

The classes rounded, rounded-circle, and rounded-0 are BS4 border radius utilities http://getbootstrap.com/docs/4.0/utilities/borders/#border-radius. I think it's better if we conform to their namespace (just in case someone wants to use BS4 border radius utilities on stickers).

For user-icon to sticker-circle I thought it was better to keep it as user-icon since Lexicon defined all circular stickers to be only used with people. That way we have a namespace to easily change the border radius of all people stickers or even the style across portal. We can add sticker-circle if you guys really need it, but I think we should have an extra namespace on user icons in portal.

@carloslancha
Copy link
Contributor

carloslancha commented Mar 13, 2018

Hey @pat270

From the point of view of the Sticker component is kinda weird to associate a circular shape with user-icon class. Just thinking in Sticker as an standalone component it should not worry about if is going to be used by an user or by a pizza, it only knows that two shapes exists, rounded and circular.

That's why we thought about calling it sticker-circle.

@@ -33,7 +33,7 @@ $sticker-outside-offset: -($sticker-size / 2) !default;

// User Icon
Copy link
Contributor

Choose a reason for hiding this comment

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

Should rename this as well

@jbalsas
Copy link
Contributor

jbalsas commented Mar 14, 2018

I think both arguments make sense. From a component perspective and consistency, it makes sense we call it sticker-circle. It makes it easier to reason with and makes the markup more obvious.

From an extensibility/configurability point of view, it is certainly interesting to have a way to target all user icons. We are already attaching the user-icon class to those, so we can definitely do the necessary modifications in portal using that selector.

@pat270, regarding the utilities comment. I was under the impression that we agreed not to use BS4 utilities? Do you mean that you'd rather have this markup? <span class="sticker rounded-circle">...</span> than <span class="sticker sticker-circle">...</span>?

@pat270
Copy link
Member

pat270 commented Mar 14, 2018

sticker-circle is essentially a utility class without the !important flag. I suppose it doesn't really matter as long as there is some distinction between all the sticker-circles in portal. I'm good with this breaking change.

@jbalsas
Copy link
Contributor

jbalsas commented Mar 14, 2018

Hey @pat270, what do you mean by the distinction between sticker-circles in portal? We currently don't have any usages of that.

@pat270
Copy link
Member

pat270 commented Mar 14, 2018

@jbalsas You're right about the breaking change. I realize it was sticker-circle in v1. This is fine with me.

@jbalsas
Copy link
Contributor

jbalsas commented Mar 14, 2018

Cool, thanks for clarifying and going through this with us! ☺️

@jbalsas jbalsas merged commit 1e4caad into liferay:develop Mar 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants