--- title: "What's new in v19" slug: ovhcloud-design-system-upgrade-what-s-new-v19 category: generic type: overview version: 20.0.0 tokens: 6632 source: https://ovh.github.io/design-system/v20.0.0/llms/ovhcloud-design-system-upgrade-what-s-new-v19.txt --- # What's new in v19 *Release notes of v19. For the current major version, see [What's new](https://ovh.github.io/design-system/v20.0.0/guides/whats-new).* ## v19.7.3 ### Bug fixes **Datatable** - Fix z-index conflicts with sticky header and pinned columns. **Combobox** - Allow controlled combobox to be cleared programmatically ## v19.7.2 ### Tooling - Package manager migrated from Yarn to **pnpm**. - CI pipeline optimized. ## v19.7.1 ### Bug fixes **PromptInput** - Browser feature detection no longer throws in jsdom or Node.js environments. ## v19.7.0 ### New components **Avatar** [See Documentation](https://ovh.github.io/design-system/v20.0.0/components/avatar). **DataTable** [See Documentation](https://ovh.github.io/design-system/v20.0.0/components/data-table). **FileThumbnail** [See Documentation](https://ovh.github.io/design-system/v20.0.0/components/file-thumbnail). **Markdown** [See Documentation](https://ovh.github.io/design-system/v20.0.0/components/markdown). **MessageBubble** [See Documentation](https://ovh.github.io/design-system/v20.0.0/components/message-bubble). **PromptInput** [See Documentation](https://ovh.github.io/design-system/v20.0.0/components/prompt-input). **QueryFilter** [See Documentation](https://ovh.github.io/design-system/v20.0.0/components/query-filter). ### New recipes **Data Grid with Query Filter** [See Recipes](https://ovh.github.io/design-system/v20.0.0/recipes/components). **Chat** [See Recipes](https://ovh.github.io/design-system/v20.0.0/recipes/components). ### Feature updates **Compound components** ODS now offers different ways to be imported in your project, either through the main export that provides everything (like in previous version) or per-component. The current way: ```tsx import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@ovhcloud/ods-react'; Hello World! Lorem ipsum dolor sit amet. ``` The per-component way: ```tsx import { Accordion } from '@ovhcloud/ods-react/accordion'; Hello World! Lorem ipsum dolor sit amet. ``` We did test on a bunch of different bundler configuration to ensure that the tree-shaking is still working as expected and that existing configuration will not be impacted. **Clipboard** - New attribute `positionerStyle` has been added. **Code** - Copy button is now sticky when content is scrollable. - New attribute `positionerStyle` has been added. **Combobox** - New attributes `open`, `defaultOpen` and `onOpenChange` have been added. - New attribute `overlayConfig` has been added, with `flip` and `sameWidth` options. **Datepicker** - New attribute `onOpenChange` has been added. - New attribute `overlayConfig` has been added, with a `flip` option. **Divider** - New attribute `orientation` has been added to support vertical dividers. **Helpers** - New helper function `formatRelativeTime` has been added. **Icon** - Add the following new icons: `accessibility`, `accessibility-full`, `paperclip`, `pause`, `pause-full`, `phone`, `play`, `play-full`, `stop`, `stop-full`, `theme`. **Menu** - New attribute `overlayConfig` has been added, with `flip`, `gutter` and `sameWidth` options. **Pagination** - New page selector feature has been added. **Popover** - New attribute `overlayConfig` has been added, with a `flip` option. **ProgressBar** - New `indeterminate` value has been added. **Select** - New attributes `open`, `defaultOpen` and `onOpenChange` have been added. - New attribute `overlayConfig` has been added, with a `flip` option. **Tooltip** - New attribute `overlayConfig` has been added, with `flip`, `gutter` and `sameWidth` options. ### Bug fixes **Accordion** - Trigger text can now be selected. **Cart** - Remove button is now aligned with the label. - Item price is now correctly aligned to the right. **Combobox** - Caret click no longer triggers a form submit. **Datepicker** - Text input display bug has been fixed. **Font** - Variable weight declaration has been fixed. **Meter** - Track container no longer overflows. **Table** - Sticky header border issue on scroll has been fixed. **Textarea** - Placeholder now uses the theme color. ### Documentation improvements - Tech anatomy sections are now dynamic. - Icon gallery has been improved. ## v19.6.1 ### Feature updates **Menu** - handle disabled state on MenuItem. ### Bug fixes **Combobox** - Hide caret button from screen readers. **FileUpload** - Update file item size color to a valid contrasted one. ## v19.6.0 ### New components **Cart** [See Documentation](https://ovh.github.io/design-system/v20.0.0/components/cart). **Menu** [See Documentation](https://ovh.github.io/design-system/v20.0.0/components/menu). ### New recipes **Dashboard Card** [See Recipes](https://ovh.github.io/design-system/v20.0.0/recipes/components). ### Design updates **Theme** - New token `--ods-theme-chart-axis-color` has been added. - New token `--ods-theme-chart-background-color` has been added. - New token `--ods-theme-chart-grid-color` has been added. - New token `--ods-theme-chart-legend-color` has been added. - New token `--ods-theme-chart-reference-line-color` has been added. - New token `--ods-theme-chart-tick-color` has been added. **Combobox** - A caret is now displayed on the right side of the control. **Toaster** - Toasts are now animated. ### Feature updates **Icon** - Add the following new icons: brain, diagnostic, handshake, headphones, keyboard, reddit, ssl-key, snowflake, suitcase, target, user-full - `user` icon has been changed, previous icon is now called `user-full`. - `mic-off` and `pin-off` icons have been updated. **Tag** - New attribute `icon` has been added. ### Bug fixes **Accordion** - Content style now inherit only bottom border-radius. **Combobox** - `disable` has been remove from `ComboboxOptionItem` and `ComboboxGroupItem` interfaces, as they weren't doing anything. **Menu** - Arrow tip dom has been changed to inherit content background color. **Popover** - Arrow tip dom has been changed to inherit content background color. **Tooltip** - Arrow tip dom has been changed to inherit content background color. ### Documentation improvements - A new guide `Form Guidelines` has been added to the documentation. - A new guide `Chart Guidelines` has been added to the documentation. - A new separated LLM documentation for every components has been added. - Fix mixin import example. - Fix some code examples that weren't displaying false boolean attribute. ## v19.5.0 ### New components **Editable** [See Documentation](https://ovh.github.io/design-system/v20.0.0/components/editable). **Logo** [See Documentation](https://ovh.github.io/design-system/v20.0.0/components/logo). **Tile** [See Documentation](https://ovh.github.io/design-system/v20.0.0/components/tile). ### New recipes **Config Tile** [See Recipes](https://ovh.github.io/design-system/v20.0.0/recipes/components). **Feature List Product Card** [See Recipes](https://ovh.github.io/design-system/v20.0.0/recipes/components). ### Design updates **Theme** - New token `--ods-theme-brand-color` has been added. - `ods-color-promotion` has been updated to a new value. **Accordion** - Now has a default border radius. **Badge** - `--ods-badge-text-color-promotion` token as been updated to match new promotion color. - Badge sizes and padding have been adjusted. **Modal** - Header is now a colorless element that can contain actual content. **Tag** - Tag sizes and padding have been adjusted. ### Feature updates **Overlays z-index** In previous version of ODS, `Drawer` and `Modal` z-indexes were set to a lesser value than other overlay elements (popover, select, ...). This was allowing those to display correctly when set inside a modal. But this was causing an issue when, for example, a popover was kept open behind a modal, as it will be visible above the modal backdrop. Starting from this version, `Drawer` and `Modal` z-indexes are now greater than other overlay elements. This may cause issue with your current usage of overlay elements inside `Modal`. To use such element correctly, you'll have to set the `createPortal={ false }` on overlay elements inside `Modal`. You can see some examples on the [Modal Technical Page](https://ovh.github.io/design-system/v20.0.0/components/modal). We've also added a `positionerStyle` attribute on all overlay elements to allow you to override the positioner style and set up your own `z-index` values if needed. **Accordion** - New attribute `expandIconPosition` has been added. **Datepicker** - New attribute `positionerStyle` has been added. **Drawer** - New attribute `positionerStyle` has been added. **Form Field** - New composition component `FormFieldLabelSubLabel` has been added. **Modal** - New attribute `backdropStyle` has been added. - New attribute `positionerStyle` has been added. - New composition component `ModalHeader` has been added. - You can now setup your own modal header with a custom node. - [DEPRECATED] Color attribute is not used anymore, as modal header doesn't have any color anymore. **Popover** - New attribute `positionerStyle` has been added. **Select** - New attribute `positionerStyle` has been added. **Tooltip** - New attribute `positionerStyle` has been added. ### Recipe changes **Feature List** **Order Button** **Product Card** - Style have updated with latest design requirements, mostly text changes and tooltip alignment. ### Documentation improvements A new page `Roadmap` has been added to the documentation. You can refer to it to have an overview of what we're working on and what you could expect for the future ODS releases. Please note that this page may be updated in case of major priority changes, outside of an ODS version release. - Medium examples have been updated as they were the same as `Logo`. ### Miscellaneous - Remove console warning about `Modal` color depreciation, as it was print even if color wasn't set. ## v19.4.1 ### Bug fixes **Datepicker** - Overriding `display` on `DatepickerContent` now won't cause any closing issue. **Drawer** - Overriding `opacity` on `DrawerContent` now won't cause any closing issue. **Modal** - Overriding `display` on `ModalContent` now won't cause any closing issue. **Popover** - Overriding `display` on `PopoverContent` now won't cause any closing issue. **Range** - Fix infinite loop that may occurs on dual range. **Select** - Overriding `display` on `SelectContent` now won't cause any closing issue. **Tooltip** - Overriding `display` on `TooltipContent` now won't cause any closing issue. ## v19.4.0 ### New features **Helpers** `@ovhcloud/ods-react` package now expose the following helper functions: - `formatPrice`: useful to format an amount into a price with currency for a given locale. You can find more information about helpers on the new dedicated section in the documentation. **Recipes** Recipes are ready-to-use UI patterns built with ODS components. They provide pre-implemented code snippets for common use cases, helping you build consistent interfaces faster. Each recipe may include multiple implementations, so you can choose the styling approach that fits your project. We're still iterating on the whole recipe system to ensure it fits integrator needs. Feel free to share with us your feedback with your own experience while using those recipes. You can find more information about recipes on the new dedicated section in the documentation. ### New components **Button Group** [See Documentation](https://ovh.github.io/design-system/v20.0.0/components/button-group). **Kbd** [See Documentation](https://ovh.github.io/design-system/v20.0.0/components/kbd). ### Design updates **Tabs** > This change may impact your layouts. - Default tabs height have been increased. ### Feature updates **Icon** - Add 17 new icons. **Switch** - [DEPRECATED] Whole component is now deprecated, you can use the new Tabs `switch` variant instead. **Tabs** - New attribute `size` has been added. - New attribute `variant` has been added. ### Bug fixes **AI Agents** - LLM files now contain all the relevant Storybook pages. **Code** - Highlighter instance is now correctly cleaned on unmount. **Combobox** - Prevent content close on scrollbar click. - Active option is now automatically scrolled into view. **FileUpload** - Use correct role on file item error. **Range** - Prevent thumb focus when value is changed by external sources. **Select** - Value text and placeholder are now ellipse by default. ## v19.3.0 ### New components **Toaster** [See Documentation](https://ovh.github.io/design-system/v20.0.0/components/toaster) ### Design updates ODS theme design tokens have been reworked to be more semantic. It is now easier to understand how each token should be used. Each component have been updated accordingly and are now more normalized design-wise. Each component now also expose custom tokens that may be used to override rendering on a component-level. All those changes are the first major step towards a complete reworked theme that aims to provide more consistency, easier customization and understanding. [DEPRECATED] Previous design tokens should be replaced by the corresponding theme tokens. **Accordion** - Border color has been changed and is now the same for every component states. **Combobox** - `invalid` overlay now uses the critical color. **File Upload** - A more compact version is now available (using `variant` attribute). - Existing layout has been updated to be more compact. **Message** - Light messages now have a colored border. **Range** - Track color now is the same as other track elements. - Cursor has been changed to default (as in native). - Thumb background color change on hover/focus/drag has been removed. **Select** - `invalid` overlay now uses the critical color. - Groups are now separated by a border. **Skeleton** - Default background color is now slightly darker. **Table** - Default `min-width` has been removed on mobile view. **Text** - Font size now uses `rem` instead of `px`. This will only impact app where the root element `font-size` is not `16px`. **Toggle** - Hover effect on `off` label has been removed. ### Feature updates **Code** - New attribute `highlighter` has been added. - Documentation has been updated with how to setup a custom highlighter. **Datepicker** - `value` now also accepts `null` as a value. - `DatepickerValueChangeDetail` `value` and `valueAsString` now may be `null`. **Divider** - [DEPRECATED] Color attribute will now always be primary, if you need another color, prefer overriding it using css. **File Upload** - New attribute `variant` has been added. **Text** - New attribute `disabled` has been added. - New preset `small` has been added. ### Bug fixes **Combobox** - Clicking another combobox while focused on another one, now correctly closes the first one. - Controlled value changed externally is now correctly reflected. **Datepicker** - Clear when controlled now works as expected. **Link** - Disabled links do not have an underline animation when hovered. **Tabs** - `tablist` role now correctly contains only valid children. - Now doesn't automatically scroll to the component on render. ### Documentation improvements A new tool has been added to the documentation, the `Theme Generator`. This allows users to experiment with the ODS tokens directly in the Storybook. You can preview how each design tokens will impact the components, generate your own color palettes and export/import your custom theme. ODS documentation is now available as LLM files to help AI tools to better understand our library and its usage. - Add a theme selector on the top left menu. - Implement dark mode documentation. - New section `AI Agents` added to the documentation. - Design Tokens have been updated and completed with color palettes. - All technical pages have been updated with components custom CSS variables. - Icon `All` page search control now accepts special character. - Update FAQ. ## v19.2.1 ### Feature updates **Combobox** - New attribute `customFilter` has been added. ### Bug fixes **Button** - Use correct border radius for `sm` size. **Input** - Normalize border style on hover & focus. **Password** - Normalize border style on hover & focus. **Tabs** - Container bottom border takes the whole width. ### Documentation improvements - Update FAQ. - Remove ToC on Changelog page. ### Miscellaneous **Tabs** - Add a console warning when no `defaultValue` or `value` are set. ## v19.2.0 ### New components **Meter** [See Documentation](https://ovh.github.io/design-system/v20.0.0/components/meter) **TreeView** [See Documentation](https://ovh.github.io/design-system/v20.0.0/components/tree-view) ### Font changes Font files are now accessible as actual files instead of base64 conversion. This will reduce the size of the ODS style bundle and allow browser resource loading parallelization. Thanks to [Ennoriel](https://github.com/ennoriel) for the contribution. **@ovhcloud/ods-react** - Now exposes a css reset file (using `import '@ovhcloud/ods-react/normalize-css';`) **@ovhcloud/ods-themes** - Now exposes css without fonts (using `import '@ovhcloud/ods-themes/default/css';`) - Now exposes font-faces separately (using `import '@ovhcloud/ods-themes/default/fonts';`) ### Feature updates **@ovhcloud/ods-themes** - Now exposes design tokens as JSON (using `import '@ovhcloud/ods-themes/default/tokens';`) **File Upload** - Improve i18n default translations. **Icon** - Add 40 new icons. **Password** - Improve i18n default translations. **Phone Number** - Improve i18n default translations. **Popover** - New attribute `autoFocus` has been added. - New attribute `gutter` has been added. - New attribute `sameWidth` has been added. - New attribute `onPositionChange` has been added. - New attribute `triggerId` has been added. **Range** - New attribute `displayBounds` has been added. - New attribute `displayTooltip` has been added. - Ticks now accepts objects with custom labels. - Range component size is now correctly computed, it will fit better in the page rendering flow. **Tabs** - New attribute `withArrows` has been added. **Timepicker** - Improve i18n default translations. ### Bug fixes **Combobox** - Has been rewritten internally, but the usage stays the same. - Fix selection behavior issues. - Add style on selected element. - Fix missing style on group separator. **Input** - Clearable now always appears correctly when controlled. **Quantity** - Fix default value stuck when used inside a FormField. **Range** - Update ticks position computation to match thumb size. ### Documentation improvements A new tool has been added to the documentation, the `Code sandbox`. This allows users to experiment with the ODS library directly in the Storybook. You can also share your sandbox code with others. This is especially useful when trying to reproduce some issue you encounter, but in a smaller dedicated context. - New section `Tools` added to the documentation. - A sandbox shortcut has been added to every examples. - New dedicated page about Tailwind integration. - Add badges when relevant near navigation menu items. - Update "Get Started" with fonts changes. - Update "Apply ODS Style" with CSS reset. - Update GitHub repository contributing page. - Update FAQ with contribution information. - Multiple typo fixes. ### ODS dependencies upgrade - ArkUI bumps from `5.12.0` to `5.25.1`. ## v19.1.0 ### Accessibility improvements #### a11y This version focuses on improving the accessibility for each component. We've implemented all the internal requirements on each component, validated using [axe-core](https://github.com/dequelabs/axe-core) and [lighthouse](https://www.npmjs.com/package/lighthouse). Though, ensuring accessibility for your context does require you to use the right `aria`/`role`/... attribute at the right place. To help you with that, we've added: - a [guide about accessibility](https://ovh.github.io/design-system/v20.0.0/guides/accessibility) best practices. - a dedicated `Accessibility` section on each component `Documentation` page. #### i18n Some components provide internal features that need an explicit context. For example the clear button on the `Input` which require an `aria-label` describing that the button will clear the value. We do provide default values for each supported locales to ensure that integrating ODS component as is will already convey the minimal information to impaired users. You can customize those value further with your own translations. See the related [Internationalization guide](https://ovh.github.io/design-system/v20.0.0/guides/internationalization) for more information. ### Design updates > Some design changes may impact your layouts. **Breadcrumb** - `fontSize` is now inherited and no more fixed to `0.875rem`. **Checkbox** - Added minimal vertical spacing on group. - Checkbox size is now `16px`. **Design Tokens** - New color variants `-025` and `-075` have been added. **Progress Bar** - Now defaults to full width. **Tag** - `md` height is now `24px` by default. ### Feature updates **All components** - A new attribute `data-ods` has been added to each exposed component, allowing them to be identified in the DOM. **Breadcrumb** - New attribute `i18n` has been added. - New attribute `locale` has been added. **Button** - Improve button contrast for accessibility. **Clipboard** - New attribute `i18n` has been added. - New attribute `locale` has been added. **Combobox** - Added `customRendererData` on combobox items. - New attribute `i18n` has been added. - New attribute `locale` has been added. **Datepicker** - New attribute `i18n` has been added. - New attribute `locale` has been added. **File Upload** - New attribute `i18n` has been added on `FileUploadItem`. - New attribute `locale` has been added. **Input** - New attribute `i18n` has been added. - New attribute `locale` has been added. **Message** - Improve color contrast for accessibility. - New attribute `i18n` has been added. - New attribute `locale` has been added. **Modal** - New attribute `i18n` has been added. - New attribute `initialFocusedElement` has been added. - New attribute `locale` has been added. **Password** - New attribute `i18n` has been added. - New attribute `locale` has been added. **Phone Number** - New attribute `i18n` has been added. - New attribute `locale` has been added. **Quantity** - Increment and decrement buttons are no longer focusable, allowing keyboard navigation to focus solely on the input field for consistent vocalization. **Select** - Items `customData` now accept an optional generic type. **Timepicker** - New attribute `i18n` has been added. - New attribute `locale` has been added. **Toggle** - New component `ToggleControl` has been added. - New component `ToggleLabel` has been added. - [DEPRECATED] Using `` alone will still works as expected, though we advise to move to composition using `ToggleControl` and `ToggleLabel`. ### Bug fixes **Combobox** - Click on `FormField` label now behave like native. **File Upload** - Click on `FormField` label now behave like native. **Phone Number** - Following country codes `bq`, `gf`, `gp`, `io`, `pm`, `re`, `sj`, `sx` have been added. - Click on `FormField` label now focus input instead of country select. **Popover** - Positioning is now correct if a custom ID is set on the trigger element. - The trigger is now focusable by default. **Tooltip** - Positioning is now correct if a custom ID is set on the trigger element. - The trigger is now focusable by default. ### Documentation improvements - New `Accessibility` page has been added in the `Guides` section. - New section `Accessibility` has been added on every component `Documentation` page with best practices and examples. - A `react-router` `Link` example has been added. - Github links on component `Documentation` pages have been fixed. - Atomic design link on component `Documentation` pages have been removed, as it was not relevant. - New link to previous major version doc has been added on component `Documentation` pages. - A link to form guide has been added on each `FormField` examples. - FAQ has been updated. ### Miscellaneous - Fix Windows issues when cloning the repository and running the Storybook scripts. ## v19.0.1 ### Feature updates **Pagination** - Add `onPageSizeChange` handler. - Add `pageSize` to `PaginationPageChangeDetail` detail object. ## v19.0.0 Version 19 of ODS is not the direct follow-up of previous versions, it is a new library built 100% on top of [React](https://react.dev). ### Project changes Previous versions were providing a React version of each components too, but there were in fact a wrapping of the Web Component. Thus it was designed with the constraints related to Web Component (no virtual DOM, relying on DOM selector, ...). With this new version we got rid of those constraints, which gave us some benefits like: - component composition. - easier style customization. - easier React integration (no more `ref` needed, nor literal templates). Although, we tried to stay as close as possible to previous version behavior, the way you integrate ODS in your React app should be rethought, to ensure you use components as real React elements and not wrapped Web Components anymore. To check how to start with this new version, please follow the [Get Started](https://ovh.github.io/design-system/v20.0.0/guides/get-started) documentation. Here is a non-exhaustive list of the major changes: - rework of all components as React elements. - tree-shaking. - less restriction on components customization and usage. - reduced CSS size by moving to variable fonts. - no more Ods prefix on all components/constants. - no more web-components nor Vue wrappers provided. - updated icons (now with default padding embed). - updated various component designs (datepicker, message, modal, spinner, ...). - new design tokens. - updated documentation. - card default color changed. - ...