Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

chore(docs): clean up miscellaneous component documentation #1992

Merged
merged 5 commits into from
Oct 2, 2019
Merged

chore(docs): clean up miscellaneous component documentation #1992

merged 5 commits into from
Oct 2, 2019

Conversation

dvdzkwsk
Copy link
Contributor

@dvdzkwsk dvdzkwsk commented Oct 1, 2019

As I've been working on the new Stardust docs I've encountered various typos, grammatical errors, and tense/wording inconsistencies. Since the new docs are using the same exact schemas the current ones do, I figured I'd share the changes sooner than later :).

For wording changes, I tried to keep as true to the original intent as possible while cleaning up the language a bit. If I've gone astray with any of the changes, please let me know!

@vercel vercel bot temporarily deployed to staging October 1, 2019 18:20 Inactive
* @param {SyntheticEvent} event - React's original SyntheticEvent.
* @param {object} data - All props.
*/
onFocus?: ComponentEventHandler<AlertProps>

/** An alert may be formatted to display a successful message. */
/** An alert can be formatted to display a successful message. */
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Minor consistency change: "may" and "can" were used interchangeably, so I just picked one.

@vercel vercel bot temporarily deployed to staging October 1, 2019 18:23 Inactive
@vercel vercel bot temporarily deployed to staging October 1, 2019 18:25 Inactive
@vercel vercel bot temporarily deployed to staging October 1, 2019 18:31 Inactive
@@ -46,7 +46,7 @@ export interface AlertProps
*/
accessibility?: Accessibility

/** An Alert can contain action buttons. */
/** An alert can contain action buttons. */
Copy link
Contributor Author

@dvdzkwsk dvdzkwsk Oct 1, 2019

Choose a reason for hiding this comment

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

We should standardize on capitalization conventions across all components, but for now I think it's sufficient to ensure they are consistent within a single component. In this case, most were already lowercase.

* also allowed. If using negative values, the animation will start as if it had already been
* playing for N seconds.
* playing for that amount of time.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since this is a string, it's not necessarily in seconds.

@@ -38,7 +38,7 @@ export interface AccordionProps extends UIComponentProps, ChildrenComponentProps
/** Initial activeIndex value. */
defaultActiveIndex?: number[] | number

/** Only allow one panel open at a time. */
/** Only allow one panel to be expanded at a time. */
Copy link
Contributor Author

@dvdzkwsk dvdzkwsk Oct 1, 2019

Choose a reason for hiding this comment

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

Consistency: Accordion uses the word expanded to describe its panels' open states, and that term is also already used in describing other props.

@vercel vercel bot temporarily deployed to staging October 1, 2019 18:37 Inactive
@vercel vercel bot temporarily deployed to staging October 1, 2019 18:38 Inactive
@@ -24,42 +24,42 @@ export interface AnimationProps
/** The name for the animation that should be applied, defined in the theme. */
name?: string

/** The delay property specifies a delay for the start of an animation. Negative values are
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Most components don't reiterate the name of the property in the doc string, which I think is a good thing. I've removed it from Animation to make it consistent with the rest of the components.

defaultChecked?: SupportedIntrinsicInputProps['defaultChecked']

/** Whether or not item is checked. */
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe checkbox is meant by item here.

David Zukowski and others added 3 commits October 2, 2019 10:13
Min words is listed as 5, but the the assertion contradicts this by asserting that words is _greater_ than min words.
@codecov
Copy link

codecov bot commented Oct 2, 2019

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1992   +/-   ##
=======================================
  Coverage   77.02%   77.02%           
=======================================
  Files         158      158           
  Lines        5459     5459           
  Branches     1581     1597   +16     
=======================================
  Hits         4205     4205           
  Misses       1241     1241           
  Partials       13       13
Impacted Files Coverage Δ
packages/react/src/components/Button/Button.tsx 71.42% <ø> (ø) ⬆️
...ackages/react/src/components/Dropdown/Dropdown.tsx 87.81% <ø> (ø) ⬆️
...ackages/react/src/components/Checkbox/Checkbox.tsx 84.37% <ø> (ø) ⬆️
packages/react/src/components/Alert/Alert.tsx 80% <ø> (ø) ⬆️
packages/react/src/components/Chat/Chat.tsx 71.42% <ø> (ø) ⬆️
packages/react/src/components/Divider/Divider.tsx 100% <ø> (ø) ⬆️
...kages/react/src/components/Accordion/Accordion.tsx 95.89% <ø> (ø) ⬆️
...kages/react/src/components/Animation/Animation.tsx 85.71% <ø> (ø) ⬆️
packages/react/src/components/Avatar/Avatar.tsx 100% <ø> (ø) ⬆️
...ges/react/src/components/Attachment/Attachment.tsx 87.5% <ø> (ø) ⬆️
... and 1 more

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 f0541bc...353a024. Read the comment docs.

@DustyTheBot
Copy link
Collaborator

Fails
🚫 All of your entries in CHANGELOG.md should be in the **Unreleased** section!

Generated by 🚫 dangerJS

@dvdzkwsk
Copy link
Contributor Author

dvdzkwsk commented Oct 2, 2019

DangerJS improperly flagging a whitespace fix in the Changelog. Ignoring.

@dvdzkwsk dvdzkwsk merged commit 54ef291 into microsoft:master Oct 2, 2019
@dvdzkwsk dvdzkwsk deleted the chore/doc-fixes branch October 2, 2019 19:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants