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(Select): add support for label prop #1837

Merged
merged 1 commit into from
Jan 26, 2024
Merged

Conversation

booc0mtaco
Copy link
Contributor

Summary:

  • provide a cleaner API for implementing the label similar to other form fields
  • add disabled prop should a user want to still detach and use Select.Label
  • update styles to support this
  • docs: clean up all Select stories and API table in storybook
  • docs: greatly simplify the presentation of Select documentation
  • update relevant snapshots

Test Plan:

  • Wrote automated tests
  • CI tests / new tests are not applicable
  • Manually tested my changes, but I want to keep the details secret
  • Manually tested my changes, and here are the details:

@booc0mtaco booc0mtaco requested review from allisonbrownczi and a team January 26, 2024 18:55
@booc0mtaco
Copy link
Contributor Author

Screenshot 2024-01-26 at 12 56 37

Copy link

github-actions bot commented Jan 26, 2024

size-limit report 📦

Path Size
components 97.73 KB (+0.05% 🔺)
styles 39.81 KB (+0.12% 🔺)

@booc0mtaco
Copy link
Contributor Author

This will also greatly improve the documentation table, and code snippets in the resulting storybook pages.

(old/new)

  • improvements to per-prop documentation
  • clearer code examples per story
  • simpler storybook implementation for stories
  • documented each story with a block describing what the story implements
  • added story for event handling props - this functionality does exist, but adding an example story (cc @czibbelvin)

Copy link

codecov bot commented Jan 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3fc3354) 92.46% compared to head (4c14dcc) 92.47%.

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #1837      +/-   ##
==========================================
+ Coverage   92.46%   92.47%   +0.01%     
==========================================
  Files         147      147              
  Lines        2761     2765       +4     
  Branches      740      745       +5     
==========================================
+ Hits         2553     2557       +4     
  Misses        192      192              
  Partials       16       16              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

- provide a cleaner API for implementing the label similar to other form fields
- add disabled prop should a user want to still detach and use Select.Label
- update styles to support this
- docs: clean up all Select stories and API table in storybook
- docs: greatly simplify the presentation of Select documentation
- update relevant snapshots
@booc0mtaco booc0mtaco merged commit c032ff2 into next Jan 26, 2024
8 checks passed
@booc0mtaco booc0mtaco deleted the aholloway/EFI-1540 branch January 26, 2024 23:27
@booc0mtaco booc0mtaco mentioned this pull request Feb 1, 2024
booc0mtaco added a commit that referenced this pull request Feb 1, 2024
## [13.10.0](v13.9.0...v13.10.0) (2024-02-01)

[Storybook](https://61313967cde49b003ae2a860-xjckjitaia.chromatic.com/)

### Features

* **Select:** add ability to handle click and change event handlers ([#1839](#1839)) ([54a3de8](54a3de8))
* **Select:** add support for label prop ([#1837](#1837)) ([c032ff2](c032ff2))
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