Codex v2.2.0[1] has just been released and will ride the deployment train next week. In a previous release, we made some deprecating changes in several components and, with v2.2.0, you will start to see deprecation warnings in the console related to these changes. Please check your code if you're using the following components and props:
- Dialog: use the `useCloseButton` prop to turn on the close button instead of the `closeButtonLabel` prop. Only use `closeButtonLabel` if you need to customize the close button's aria-label. - Field and Label: use the `optional` prop to show the "(optional)" flag instead of the `optionalFlag` prop. Only use `optionalFlag` if you need to customize the optional flag text. - Message: use the `allowUserDismiss` prop to show the dismiss button instead of the `dismissButtonLabel` prop. Only use `dismissButtonLabel` if you need to customize the dismiss button's aria-label. - SearchInput and TypeaheadSearch: use the `useButton` prop to show the search button instead of the `buttonLabel` prop. Only use `buttonLabel` if you need to customize the search button text. Visit https://doc.wikimedia.org/codex/latest/components/overview.html to view documentation for each component, including further explanation of the props. The deprecated functionality will be removed in the next major version, for which there is currently no plan or timeline, but we recommend making these changes now so the future 3.0.0 release is easier. Thanks for your attention, Anne Tomasevich, on behalf of the Design System Team [1] https://www.npmjs.com/package/@wikimedia/codex -- Anne Tomasevich (she/her) Staff Software Engineer, Design System Wikimedia Foundation
_______________________________________________ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/