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

Improve API docs for buttons and improve overall doc consistency #2117

Merged
merged 15 commits into from
May 17, 2024

Conversation

jattasNI
Copy link
Contributor

@jattasNI jattasNI commented May 16, 2024

Pull Request

🀨 Rationale

As part of #824 we want to improve the accuracy and comprehensiveness of our storybook API documentation.

πŸ‘©β€πŸ’» Implementation

  1. Update button, toggle-button, and card-button to follow new API doc pattern. (I'll do anchor-button along with other anchors).
  2. Add and tweak wording on shared documentation strings and utilities
  3. Tweak organization of MDX headings in all stories to put Appearance and Sizing under Styling
  4. Add CONTRIBUTING guidance about referring to sections within docs (in previous PRs we gave up on trying to link to sections and started using bolded text instead).

πŸ§ͺ Testing

Local storybook exploration

βœ… Checklist

  • I have updated the project documentation to reflect my changes or determined no changes are needed.

@jattasNI jattasNI marked this pull request as ready for review May 16, 2024 20:34
@jattasNI jattasNI requested a review from rajsite as a code owner May 16, 2024 20:34
packages/storybook/CONTRIBUTING.md Outdated Show resolved Hide resolved
packages/storybook/src/nimble/button/button.stories.ts Outdated Show resolved Hide resolved
@jattasNI jattasNI enabled auto-merge (squash) May 17, 2024 19:47
@jattasNI jattasNI merged commit 71e848b into main May 17, 2024
11 checks passed
@jattasNI jattasNI deleted the button-docs branch May 17, 2024 20:21
jattasNI added a commit that referenced this pull request May 24, 2024
# Pull Request

## 🀨 Rationale

Ongoing efforts towards #824. This PR covers input components:
- select
- combobox
- radio group
- text area
- text field
- number field
- checkbox
- switch

## πŸ‘©β€πŸ’» Implementation

Generally follow patterns from previous PRs like #2126 and #2117. A few
interesting notes:
1. components have different behaviors regarding whether they sync their
`value` property to an attribute. I documented the behavior I observed
by adding a new table category for properties that don't have attributes
(also used by checkbox indeterminate property).
2. not yet documenting a recommendation to use form association / CVAs
instead of change events and value properties. Until I do so, the
`placeholder` docs for select are outside any table category.
3. added another new table category for localizable strings.
4. not yet documenting list option API in the select and combobox
stories. We (probably Meyer) are going to tackle this in a follow up
after #2111.

## πŸ§ͺ Testing

<!---
Detail the testing done to ensure this submission meets requirements. 

Include automated/manual test additions or modifications, testing done
on a local build, private CI run results, and additional testing not
covered by automatic pull request validation. If any functionality is
not covered by automated testing, provide justification.
-->

## βœ… Checklist

<!--- Review the list and put an x in the boxes that apply or ~~strike
through~~ around items that don't (along with an explanation). -->

- [x] I have updated the project documentation to reflect my changes or
determined no changes are needed.

---------

Co-authored-by: m-akinc <7282195+m-akinc@users.noreply.github.com>
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.

2 participants