Releases: Workday/canvas-kit
Releases · Workday/canvas-kit
v4.1.1
2020-07-27
Components
- fix(select): Fix undesired scrolling when activating menu (#795) @jamesfan
- fix: Update Popup readme example (#798) @alanbsmith
- fix(select): Support required and aria-required (#797) @jamesfan
- fix(color-picker): Prevent enter key forwarding to next focus target (#799) @NicholasBoll
- fix(select): Add cancelAnimationFrame to unmount (#803) @jamesfan
- fix(menu): Delay focus to prevent scrolling (#802) @NicholasBoll
v4.0.2
v3.9.2
v4.1.0
2020-07-17
Components
- test(radio): Fix prop table logic (#748) @lychyi
- fix(select): Fix theming colors for proper contrast (#747) @jamesfan
- test(skeleton): Add stories and enabled snapshots (#720) @mannycarrera4
- chore: Add iconRef to Icon components (#707) @alanbsmith
- chore(popup-stack): Fix repo url in package.json (#753) @lychyi
- fix(select): Fix a11y issues (#764) @jamesfan
- fix(select): Fix typeahead behavior and scrolling (#754) @jamesfan
- feat(popup): Add getAnchorClientRect prop for custom positioning (#765) @luislikescoffee
- fix: Add explicit arg to initEvent in ComboBox and header SearchBar (#767) @lychyi
- test(text-area): Added placeholder with value unit test (#772) @amritbhullar
- refactor(form-field): Update error message color (#774) @jamesfan
- feat(combobox): Allow grouping of listbox items (#535) @vibdev
- fix(menu): Fix style so item is not truncated in IE11 (#777) @mannycarrera4
- fix(avatar): Fix undesired halo around Dark variant (#783) @6r3al
Infrastructure
- fix: Address various publish-canary.js bugs (#749) @lychyi
- docs: Added Workday Design page to README file (#737) @tiarebalbi
- ci: Fix canary regex to grab version (#758) @anicholls
- feat: Support SSR (#649) @anicholls
Theming
- refactor(common): Update pickForegroundColor to use fallback color logic (#752) @donovangini
Breaking Changes:
- feat(popup-stack): Add adapter API to integrate with other popup systems (#782) @NicholasBoll
This is a potentially breaking change if you use usePopupStack
and ReactDOM.createPortal(contents, document.body)
:
We added createContainer
to PopupStack
. React no longer controls the element that is given to the the PopupStack
. The PopupStack
will now create a containing element that your content should render into. If you recognize this pattern, you'll need to render into stackRef.current
instead of document.body
.
Before:
const ref = React.createRef<HTMLDivElement>(null);
usePopupStack(ref)
React.createPortal(contents, document.body)
Now
const stackRef = usePopupStack()
React.createPortal(contents, stackRef.current)
v4.0.1
v3.9.1
v4.0.0
2020-06-15
The changes below are the consolidation of changes made across all 4.0.0 beta versions (v4.0.0-beta.0
- v4.0.0-beta.5
).
To review the breaking changes made in this release and get more information on migrating, check out the v4 Migration Guide.
Infrastructure
- ci: Release canary builds for prerelease branches (#481) @anicholls
- ci: Fix prerelease canary builds (#501) @anicholls
- feat: Add script for easy promotion of labs components (#522) @anicholls
- chore: Manage dependencies (#533) @anicholls
- fix: Remove SyntheticEvent type usage (#499) @donovangini
- refactor: Destructure default props (#525) @mannycarrera4
- chore: Upgrade packages to fix vulnerabilities (#531) @anicholls
- feat(core): Add window configuration option to inherit font family (#553) @anicholls
- fix: Add type checking to PRs and fix type errors (#609) @NicholasBoll
- ci: Use sha in prerelease version to avoid duplicates (#616) @anicholls
- ci: Trim sha before using it for canary preid (#619) @anicholls
- ci: Fix version regex for canary publish (#622) @anicholls
- fix: Clean up ts3.5 files (#630) @NicholasBoll
- ci: Add script to announce trunk build failures in slack (#628) @anicholls
- chore: Upgrade Babel and presets to support optional chaining (#631) @NicholasBoll
- chore: Fix version issue in beta build (#644) @anicholls
- chore: Fix create-module and promote-module (#660) @NicholasBoll
- fix: Fix check-lockfile call during precommit linting (#663) @jamesfan
- ci: Improve canary builds & publish behavior (#665) @anicholls
- docs: Clean up 4.0 migration guide (#677) @anicholls
- chore: Update canvas-colors-web dependencies (#706) @anicholls
Theming
- chore: Promote theming functions out of labs (#558) @mannycarrera4
- chore: Move theme functionality from labs to common (#594) @mannycarrera4
- fix(common): Improve theming API stability (#593) @anicholls
- fix(common): Auto-generate contrast color for partial theme (#700) @donovangini
Components
- refactor(button): Simplify Button components and prep for theming (#471) @anicholls
- refactor: Rename and move IconButtonToggleGroup to SegmentedControl (#505) @anicholls
- fix(modal): Use React portals for accessibility fixes (#419) @NicholasBoll
- chore: Promote SegmentedControl out of labs (#524) @anicholls
- fix(button): Misc. fixes after refactor (#509) @anicholls
- feat(button): Add theming support to buttons (#527) @anicholls
- refactor(button): TextButton design updates (#540) @anicholls
- feat(button): Add Hyperlink component (#541) @anicholls
- feat(tooltip): Refactor to a simpler API (#528) @NicholasBoll
- feat(core): Allow InputProvider to use a configurable container (#546) @mannycarrera4
- fix(button): Fix IconButton states and update TextButton CSS (#577) @anicholls
- ci(tooltip): Fix chromatic flag (#585) @NicholasBoll
- fix: Rename prop labels to match aria labels (#551) @mannycarrera4
- fix(modal): Add missing aria-modal=true and add aria-label (#588) @alexandrzavalii
- feat(button): Add href support (#590) @anicholls
- fix(color-picker): Fix accessibility announcement for color input (#639) @mannycarrera4
- test(toast): Fix chromatic stories for toast (#625) @mannycarrera4
- fix(pagination): Provide aria live attribute for accessibility (#620) @mannycarrera4
- fix(avatar): Combine Avatar & AvatarButton and provide fallback image (#614) @vibdev
- feat(select): Add theming to select in labs (#648) @mannycarrera4
- fix(avatar): Fix misalignment on ie11 (#676) @alexandrzavalii
- fix(toast): Action link align on new line (#682) @alexandrzavalii
- fix(button): Update button readme with toolbar section (#680) @mannycarrera4
- feat(button): Add toolbar dropdown button (#684) @mannycarrera4
- test(card): Add stories and enable snapshots (#708) @mannycarrera4
- feat: Add a Popup Stack manager to Canvas Kit (#670) @NicholasBoll
- fix: Use theme contrast color for input "checks" (#719) @anicholls
- fix(button): Misc. styling fixes and update to focusRing API (#726) @anicholls
- fix(form-field): Fix default prop bug (#702) @alanbsmith
- fix(segmented-control): Misc. fixes and story improvements (#730) @anicholls
- fix(icon): Fix icon color references (#733) @anicholls
- feat(select): Render menu using a portal (#641) @jamesfan
v3.9.0
2020-06-15
Infrastructure
- test: Improve snapshot infrastructure and organization (#687) @anicholls
- chore: Bump websocket-extensions from 0.1.3 to 0.1.4 (#703) @dependabot
- chore: Remove unneeded dependency (#721) @NicholasBoll
Components
- fix(select): Fix miscellaneous UI issues (#672) @jamesfan
- test(select): Fix visual testing states for options (#606) @jamesfan
- test(avatar): Add snapshot tests for Avatar and AvatarButton (#690) @anicholls
- test(tooltip): Add snapshot test for various placements (#691) @anicholls
- test(status-indicator): Add snapshots (#692) @anicholls
- test(modal): Add modal snapshots (#693) @anicholls
- test(avatar): Fix visual regression threshold (#723) @NicholasBoll
- test(core): Add new stories and enable snapshots (#696) @anicholls
- test(drawer): Add stories and snapshots for drawer (#727) @mannycarrera4
- feat(core): Add window configuration option to inherit font family (#722) @anicholls
- test(side-panel): Add stories and enable snapshots (#715) @mannycarrera4
- ci(avatar): Fixed threshold setting (#731) @NicholasBoll
- test(status-indicator): Fix visual testing story icons (#732) @anicholls
- chore(core): Update Labs Core stories and add snapshots (#735) @alanbsmith
v4.0.0-beta.5
2020-06-12
Infrastructure
- docs: Clean up 4.0 migration guide (#677) @anicholls
- fix: Cleanup after merging master into prerelease/v4 @anicholls
- chore: Update canvas-colors-web dependencies (#706) @anicholls
Components
- fix(avatar): Fix misalignment on ie11 (#676) @alexandrzavalii
- fix(toast): Action link align on new line (#682) @alexandrzavalii
- fix(button): Update button readme with toolbar section (#680) @mannycarrera4
- feat(button): Add toolbar dropdown button (#684) @mannycarrera4
- test(card): Add stories and enable snapshots (#708) @mannycarrera4
- fix(common): Auto-generate contrast color for partial theme (#700) @donovangini
- feat: Add a Popup Stack manager to Canvas Kit (#670) @NicholasBoll
- fix: Use theme contrast color for input "checks" (#719) @anicholls
- fix(button): Misc. styling fixes and update to focusRing API (#726) @anicholls
- fix(form-field): Fix default prop bug (#702) @alanbsmith
- fix(segmented-control): Misc. fixes and story improvements (#730) @anicholls
- fix(icon): Fix icon color references (#733) @anicholls
- feat(select): Render menu using a portal (#641) @jamesfan
v3.8.0
2020-05-22
Infrastructure
- docs: Remove rebase section for pull requests (#647) @NicholasBoll
- chore: Add invalid import rule (#652) @alanbsmith
- fix: Fix incorrect dep listing (#668) @lychyi
- chore: Add public config to create-component script (#667) @alanbsmith
Components
- feat(badge): Add CountBadge component (#566) @alanbsmith
- fix: Add public access to Badge publish config (#653) @alanbsmith
- fix: Align hover ripple for checkbox and radio components in IE11 (#651) @lychyi
- fix(switch): Fix click target for switch (#671) @mannycarrera4