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

feat(Comment): add size prop to Group #1327

Merged

Conversation

tarang9211
Copy link
Contributor

@tarang9211 tarang9211 commented Feb 14, 2017

Fixed #1311

@codecov-io
Copy link

codecov-io commented Feb 14, 2017

Codecov Report

Merging #1327 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1327   +/-   ##
=======================================
  Coverage   99.75%   99.75%           
=======================================
  Files         140      140           
  Lines        2402     2402           
=======================================
  Hits         2396     2396           
  Misses          6        6
Impacted Files Coverage Δ
src/views/Comment/CommentGroup.js 100% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a239f96...d323453. Read the comment docs.

Copy link
Member

@layershifter layershifter left a comment

Choose a reason for hiding this comment

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

And we need add size to typings.

@@ -57,6 +59,9 @@ CommentGroup.propTypes = {
/** Comments can hide extra information unless a user shows intent to interact with a comment. */
minimal: PropTypes.bool,

/** Comments can have different sizes*/
size: PropTypes.oneOf(['mini', 'tiny', 'small', 'large', 'big', 'huge', 'massive']),
Copy link
Member

Choose a reason for hiding this comment

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

We use SIZES const for definitions, example.

@@ -8,4 +8,7 @@ describe('CommentGroup', () => {
common.propKeyOnlyToClassName(CommentGroup, 'collapsed')
common.propKeyOnlyToClassName(CommentGroup, 'minimal')
common.propKeyOnlyToClassName(CommentGroup, 'threaded')
common.propValueOnlyToClassName(CommentGroup, 'size', [
'mini', 'tiny', 'small', 'large', 'big', 'huge', 'massive',
Copy link
Member

Choose a reason for hiding this comment

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

^

@tarang9211
Copy link
Contributor Author

@layershifter alright, fixed up. let me know.

@levithomason
Copy link
Member

Fantastic, we just need a doc example for "Group Size" now. Here are some existing group size doc examples for comparison:

Examples/elements/Button/GroupVariations/ButtonExampleGroupSize.js
Examples/elements/Label/Groups/LabelExampleGroupSize.js
Examples/views/Statistic/Types/StatisticExampleGroupSize.js

The comment group size should be listed in Comment/Variations/CommentExampleGroupSize.js

@tarang9211
Copy link
Contributor Author

@levithomason I've added doc site examples as per your request. Only thing I noticed was that the props for size was listed this way:

screen shot 2017-02-15 at 1 24 14 am

@tarang9211
Copy link
Contributor Author

@levithomason I think this should wrap up this fix!

@tarang9211 tarang9211 changed the title fix(Comment.Group): size prop fix(Comment.Group): size prop Feb 14, 2017
@layershifter layershifter changed the title fix(Comment.Group): size prop feat(Comment): add size prop to Group Feb 15, 2017
@levithomason levithomason merged commit 07f9ab1 into Semantic-Org:master Feb 17, 2017
@levithomason
Copy link
Member

Thanks again guys!

@levithomason
Copy link
Member

Released in semantic-ui-react@0.65.0

harel pushed a commit to harel/Semantic-UI-React that referenced this pull request Feb 18, 2017
* fix(Comment.Group): added size prop

* fix(Comment.Group): appending size prop value to className, added tests

* fix(Comment.Group): refactor to use SUI sizes

* fix(Comment.Group): fix typings

* Update index.d.ts

* Update CommentGroup-test.js

* Update CommentGroup.js

* Update index.d.ts

* docs(Comment.Group): added comment group size examples to doc site
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.

None yet

4 participants