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

docs(Dropdown): added comments for shape of options #1086

Merged
merged 5 commits into from
Dec 27, 2016

Conversation

fobbyal
Copy link
Contributor

@fobbyal fobbyal commented Dec 25, 2016

took the liberty to add the shape of the options on examples. Just thought it would be helpful. I had to find the ../common.js file myself.

@codecov-io
Copy link

codecov-io commented Dec 25, 2016

Current coverage is 95.83% (diff: 100%)

Merging #1086 into master will not change coverage

@@             master      #1086   diff @@
==========================================
  Files           873        873          
  Lines          4827       4827          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           4626       4626          
  Misses          201        201          
  Partials          0          0          

Powered by Codecov. Last update 192d0d7...1c65e84

Copy link
Member

@levithomason levithomason left a comment

Choose a reason for hiding this comment

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

Awesome! This was on my bucket list. I've left a couple comments on formatting. We reserve /** doc blocks for external documentation. I'd like to keep the comments as small as possible. I've left two examples of how I'd like to refactor these. LMK if there are any questions. Thanks again!

/** stateOptions shape **/
/**
[
{ value: 'AL', text: 'Alabama' },
Copy link
Member

Choose a reason for hiding this comment

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

Let's shorten all examples that have single-line option objects:

/** stateOptions shape **/
/**
[
  { value: 'AL', text: 'Alabama' },
  { value: 'AK', text: 'Alaska' },
  { value: 'AZ', text: 'Arizona' },
  ...
]
**/

Into this style comment:

// stateOptions = [{ value: 'AL', text: 'Alabama' }, ...{}]

modified comments to conform to project standards
@fobbyal fobbyal force-pushed the drop-down-option-shapes branch from 0bc4019 to 1c65e84 Compare December 27, 2016 21:02
@fobbyal
Copy link
Contributor Author

fobbyal commented Dec 27, 2016

amended the commit. please take a look... i had to do multi-line on some of them because they didn't really fit if they were one liners. let me know what you think

@levithomason
Copy link
Member

Thanks much!

@levithomason levithomason changed the title added comments for shape of options for all Dropdown examples docs(Dropdown): added comments for shape of options Dec 27, 2016
@levithomason levithomason merged commit bcdf523 into Semantic-Org:master Dec 27, 2016
@fobbyal fobbyal deleted the drop-down-option-shapes branch December 27, 2016 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants